Skip to content

Commit 7aaabf7

Browse files
committed
hijack.sh: Fix missing quotes
Fix potential issues at hijack.sh identified by shellcheck as SC2086 Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
1 parent 99bc957 commit 7aaabf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

case-lib/hijack.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function func_exit_handler()
2121

2222
line_no=${BASH_LINENO[$((i-1))]} || true
2323
# BASH_LINENO doesn't always work
24-
if [ $line_no -gt 1 ]; then line_no=":$line_no"; else line_no=""; fi
24+
if [ "$line_no" -gt 1 ]; then line_no=":$line_no"; else line_no=""; fi
2525

2626
dloge " ${FUNCNAME[i]}() @ ${BASH_SOURCE[i]}${line_no}"
2727
done
@@ -76,7 +76,7 @@ function func_exit_handler()
7676
printf \
7777
'https://github.com/thesofproject/sof/issues/5352\n' |
7878
sudo tee -a "$logfile"
79-
if [ $exit_status = 0 ]; then
79+
if [ "$exit_status" = 0 ]; then
8080
exit_status=2 # skip
8181
fi
8282
else # 5352 corruption affects only Zephyr for some unknown reason
@@ -197,7 +197,7 @@ function func_exit_handler()
197197
fi
198198
}
199199

200-
print_test_result_exit $exit_status
200+
print_test_result_exit "$exit_status"
201201
}
202202

203203
print_test_result_exit()

0 commit comments

Comments
 (0)