Browse Source

copy-firmware: drop obsolete backticks, quote

As mentioned by shellcheck backticks are considered legacy. Plus we
should ensure the output is quoted, otherwise we'll get word splitting.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
main
Emil Velikov 2 years ago committed by Josh Boyer
parent
commit
67bf50e72c
No known key found for this signature in database
GPG Key ID: A31B6BD72486CFD6
  1. 2
      copy-firmware.sh

2
copy-firmware.sh

@ -46,7 +46,7 @@ grep -E '^Link:' WHENCE | sed -e 's/^Link: *//g;s/-> //g' | while read f d; do @@ -46,7 +46,7 @@ grep -E '^Link:' WHENCE | sed -e 's/^Link: *//g;s/-> //g' | while read f d; do
cp -d "$f" "$destdir/$f"

if test "x$d" != "x"; then
target=`readlink "$f"`
target="$(readlink "$f")"

if test "x$target" != "x$d"; then
$verbose "WARNING: inconsistent symlink target: $target != $d"

Loading…
Cancel
Save