From: Mario Limonciello Date: Wed, 8 Nov 2023 23:14:52 +0000 (-0600) Subject: Ensure rdfind is installed X-Git-Tag: 20231111~2^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cf8315ded9b422d2e8b620ffe8bb661221639c8f;p=linux-firmware.git Ensure rdfind is installed Signed-off-by: Mario Limonciello --- diff --git a/copy-firmware.sh b/copy-firmware.sh index cca3913b..f9b1f0ff 100755 --- a/copy-firmware.sh +++ b/copy-firmware.sh @@ -69,6 +69,11 @@ if [ -z "$destdir" ]; then exit 1 fi +if ! which rdfind 2>/dev/null >/dev/null; then + echo "ERROR: rdfind is not installed" + exit 1 +fi + # 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 test -f "$f" || continue