Skip to content

Commit

Permalink
sof-kernel-log-check.sh: fix the last shellcheck warnings
Browse files Browse the repository at this point in the history
This file gets frequent updates because of the (relatively) new
ignore_str.

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb authored and xiulipan committed Oct 16, 2020
1 parent e382a08 commit 10013bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/sof-kernel-log-check.sh
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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

0 comments on commit 10013bf

Please sign in to comment.