diff options
author | 2025-06-01 22:31:28 +0900 | |
---|---|---|
committer | 2025-06-06 05:40:25 +0900 | |
commit | 3a44052b728e5d96ea425f908e71926364a12f11 (patch) | |
tree | 7928114e3ed81cb945e5a29ff8aed405743746bd /scripts | |
parent | kbuild: move W=1 check for scripts/misc-check to top-level Makefile (diff) | |
download | linux-rng-3a44052b728e5d96ea425f908e71926364a12f11.tar.xz linux-rng-3a44052b728e5d96ea425f908e71926364a12f11.zip |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/misc-check | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |