From: Masahiro Yamada Date: Sun, 1 Jun 2025 13:31:28 +0000 (+0900) Subject: scripts/misc-check: add double-quotes to satisfy shellcheck X-Git-Tag: v6.16-rc1~10^2~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3a44052b728e5d96ea425f908e71926364a12f11;p=linux-block.git 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 --- diff --git a/scripts/misc-check b/scripts/misc-check index f37b2f6931cc..21551d721079 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 }