]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kheaders: double-quote variables to satisfy shellcheck
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 8 Jun 2025 16:59:57 +0000 (01:59 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 24 Jun 2025 11:30:37 +0000 (20:30 +0900)
Fix the following:

In kernel/gen_kheaders.sh line 48:
    -I $XZ -cf $tarfile -C "${tmpdir}/" . > /dev/null
       ^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
               ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
kernel/gen_kheaders.sh

index 919bdcf989f45fc263115e7509f13f5aaa7fa1c7..c64e5a00a3d95854e49a5b00911f3a80a5f98183 100755 (executable)
@@ -45,6 +45,6 @@ rm -f "${tmpdir}.contents.txt"
 # Create archive and try to normalize metadata for reproducibility.
 tar "${timestamp:+--mtime=$timestamp}" \
     --owner=0 --group=0 --sort=name --numeric-owner --mode=u=rw,go=r,a+X \
-    -I $XZ -cf $tarfile -C "${tmpdir}/" . > /dev/null
+    -I "${XZ}" -cf "${tarfile}" -C "${tmpdir}/" . > /dev/null
 
 rm -rf "${tmpdir}"