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>
This commit is contained in:
Emil Velikov 2023-06-05 14:58:10 +01:00 committed by Josh Boyer
parent 77f31a8000
commit 67bf50e72c
No known key found for this signature in database
GPG Key ID: A31B6BD72486CFD6
1 changed files with 1 additions and 1 deletions

View File

@ -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"