aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2023-06-05 14:58:11 +0100
committerJosh Boyer <jwboyer@kernel.org>2023-06-25 11:59:31 -0400
commitad2ce8beeeb46bca4246ecb62ac4fe715f097e39 (patch)
tree18437928fe78e8ea4f1026c61edc3611626aa02a
parent67bf50e72c3ea3a0bbc6327542d56996ad645b75 (diff)
downloadlinux-firmware-ad2ce8beeeb46bca4246ecb62ac4fe715f097e39.tar.gz
copy-firmware: silence the last shellcheck warnings
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
-rwxr-xr-xcopy-firmware.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/copy-firmware.sh b/copy-firmware.sh
index 31e372ab..40cec04e 100755
--- a/copy-firmware.sh
+++ b/copy-firmware.sh
@@ -10,6 +10,7 @@ prune=no
while test $# -gt 0; do
case $1 in
-v | --verbose)
+ # shellcheck disable=SC2209
verbose=echo
shift
;;
@@ -21,7 +22,7 @@ while test $# -gt 0; do
*)
if test "x$destdir" != "x"; then
- echo "ERROR: unknown command-line options: $@"
+ echo "ERROR: unknown command-line options: $*"
exit 1
fi
@@ -31,6 +32,7 @@ while test $# -gt 0; do
esac
done
+# shellcheck disable=SC2162 # file/folder name can include escaped symbols
grep '^File:' WHENCE | sed -e 's/^File: *//g;s/"//g' | while read f; do
test -f "$f" || continue
$verbose "copying file $f"
@@ -38,6 +40,7 @@ grep '^File:' WHENCE | sed -e 's/^File: *//g;s/"//g' | while read f; do
cp -d "$f" "$destdir/$f"
done
+# shellcheck disable=SC2162 # file/folder name can include escaped symbols
grep -E '^Link:' WHENCE | sed -e 's/^Link: *//g;s/-> //g' | while read f d; do
if test -L "$f"; then
test -f "$destdir/$f" && continue