From 10013bfcf6e31b397c93df26d7e83dea942c9387 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Tue, 13 Oct 2020 21:59:34 -0700 Subject: [PATCH] sof-kernel-log-check.sh: fix the last shellcheck warnings This file gets frequent updates because of the (relatively) new ignore_str. Signed-off-by: Marc Herbert --- tools/sof-kernel-log-check.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/sof-kernel-log-check.sh b/tools/sof-kernel-log-check.sh index a7be83d5..a8a87624 100755 --- a/tools/sof-kernel-log-check.sh +++ b/tools/sof-kernel-log-check.sh @@ -1,7 +1,7 @@ #!/bin/bash begin_line=${1:-1} -declare err_str ignore_str project_key +declare err_str ignore_str platform=$(sof-dump-status.py -p) @@ -131,11 +131,9 @@ else fi if [ "$err" ]; then - echo `date -u '+%Y-%m-%d %T %Z'` "[ERROR]" "Caught dmesg error" + echo "$(date -u '+%Y-%m-%d %T %Z')" "[ERROR]" "Caught dmesg error" echo "===========================>>" echo "$err" echo "<<===========================" builtin exit 1 fi - -builtin exit 0