From 0a0210d897ed23b18b9b7b67768ce17514730ab9 Mon Sep 17 00:00:00 2001 From: chen zhang Date: Wed, 24 Aug 2022 09:33:14 +0800 Subject: [PATCH] Update copy-firmware for WHENCE.ubuntu --- copy-firmware.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copy-firmware.sh b/copy-firmware.sh index 9b46b63..f58ffad 100755 --- a/copy-firmware.sh +++ b/copy-firmware.sh @@ -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 -h '^File:' WHENCE WHENCE.ubuntu | sed -e's/^File: *//g' -e's/"//g' | while read f; do test -f "$f" || continue $verbose "copying file $f" mkdir -p $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 -h -E '^Link:' WHENCE WHENCE.ubuntu | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; do if test -L "$f"; then test -f "$destdir/$f" && continue $verbose "copying link $f"