Skip to content

Commit 3a44052

Browse files
committed
scripts/misc-check: add double-quotes to satisfy shellcheck
In scripts/misc-check line 8: git -C ${srctree:-.} ls-files -i -c --exclude-per-directory=.gitignore 2>/dev/null | ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 89e7fec commit 3a44052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/misc-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55

66
# Detect files that are tracked but ignored by git.
77
check_tracked_ignored_files () {
8-
git -C ${srctree:-.} ls-files -i -c --exclude-per-directory=.gitignore 2>/dev/null |
8+
git -C "${srctree:-.}" ls-files -i -c --exclude-per-directory=.gitignore 2>/dev/null |
99
sed 's/$/: warning: ignored by one of the .gitignore files/' >&2
1010
}
1111

0 commit comments

Comments
 (0)