aboutsummaryrefslogtreecommitdiffstats
diff options
authorMasahiro Yamada <masahiroy@kernel.org>2025-06-01 22:31:28 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2025-06-06 05:40:25 +0900
commit3a44052b728e5d96ea425f908e71926364a12f11 (patch)
tree7928114e3ed81cb945e5a29ff8aed405743746bd
parent89e7fecf5ce2e85a323e58f09aa808218a37079a (diff)
downloadlinux-3a44052b728e5d96ea425f908e71926364a12f11.tar.gz
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 <masahiroy@kernel.org>
-rwxr-xr-xscripts/misc-check2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/misc-check b/scripts/misc-check
index f37b2f6931cc2f..21551d721079b1 100755
--- a/scripts/misc-check
+++ b/scripts/misc-check
@@ -5,7 +5,7 @@ set -e
# Detect files that are tracked but ignored by git.
check_tracked_ignored_files () {
- git -C ${srctree:-.} ls-files -i -c --exclude-per-directory=.gitignore 2>/dev/null |
+ git -C "${srctree:-.}" ls-files -i -c --exclude-per-directory=.gitignore 2>/dev/null |
sed 's/$/: warning: ignored by one of the .gitignore files/' >&2
}