Skip to content

Commit 45d8482

Browse files
committed
tests: shellcheck: run for added files
The skipping check is not considering added files. I initially thought we can't test them because there is no before. Then I realized before is empty. But I didn't adjust the skip check. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 06c7693 commit 45d8482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/patch/shellcheck/shellcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pr() {
1111
}
1212

1313
# If it doesn't touch .sh files, don't bother. Ignore created and deleted.
14-
if ! git show --diff-filter=M --pretty="" --name-only HEAD | grep -q -E "\.sh$"
14+
if ! git show --diff-filter=AM --pretty="" --name-only HEAD | grep -q -E "\.sh$"
1515
then
1616
echo "No shell scripts touched, skip" >&$DESC_FD
1717
exit 0

0 commit comments

Comments
 (0)