Skip to content

Commit 99dd76b

Browse files
committed
tests: shellcheck: log shellcheck compliant files
To be clearer and to make sure the script is working properly. Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
1 parent 8ac31c9 commit 99dd76b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/patch/shellcheck/shellcheck.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ current_w=$(grep -c " (warning):" "$tmpfile_n")
7373

7474
# if a file was compliant before or is new, mark everything as error to keep it good.
7575
for f in "${tmpfile_n}_"*; do
76-
[ ! -s "${f}" ] && continue # still compliant
77-
7876
sha="${f:${#tmpfile_n}+1}"
77+
[ ! -s "${f}" ] && echo "${sha} is shellcheck compliant" && continue
78+
7979
old="${tmpfile_o}_${sha}"
8080
[ -s "${old}" ] && continue # wasn't compliant
8181

0 commit comments

Comments
 (0)