copy-firmware: tweak sed invocation

Add space between the arguments and pattern and combine patterns where
possible.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This commit is contained in:
Emil Velikov 2023-06-05 14:58:09 +01:00 committed by Josh Boyer
parent 40fa2b2096
commit 77f31a8000
No known key found for this signature in database
GPG Key ID: A31B6BD72486CFD6
1 changed files with 2 additions and 2 deletions

View File

@ -31,14 +31,14 @@ while test $# -gt 0; do
esac
done
grep '^File:' WHENCE | sed -e's/^File: *//g' -e's/"//g' | while read f; do
grep '^File:' WHENCE | sed -e 's/^File: *//g;s/"//g' | while read f; do
test -f "$f" || continue
$verbose "copying file $f"
install -d "$destdir/$(dirname "$f")"
cp -d "$f" "$destdir/$f"
done
grep -E '^Link:' WHENCE | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; do
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
$verbose "copying link $f"