copy-firmware.sh: remove no longer reachable test -f

With previous commit we call check_whence.py, which ensures that all files
listed are available. Drop the now dead code.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Emil Velikov 2024-09-22 17:03:53 +01:00 committed by Mario Limonciello
parent 6edd0fd36a
commit 25d5e6352b
1 changed files with 0 additions and 1 deletions

View File

@ -76,7 +76,6 @@ $verbose "Checking that WHENCE file is formatted properly"
# shellcheck disable=SC2162 # file/folder name can include escaped symbols # shellcheck disable=SC2162 # file/folder name can include escaped symbols
grep -E '^(RawFile|File):' WHENCE | sed -E -e 's/^(RawFile|File): */\1 /;s/"//g' | while read k f; do grep -E '^(RawFile|File):' WHENCE | sed -E -e 's/^(RawFile|File): */\1 /;s/"//g' | while read k f; do
test -f "$f" || continue
install -d "$destdir/$(dirname "$f")" install -d "$destdir/$(dirname "$f")"
$verbose "copying/compressing file $f$compext" $verbose "copying/compressing file $f$compext"
if test "$compress" != "cat" && test "$k" = "RawFile"; then if test "$compress" != "cat" && test "$k" = "RawFile"; then