]> git.proxmox.com Git - mirror_linux-firmware.git/commitdiff
Ensure rdfind is installed
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 8 Nov 2023 23:14:52 +0000 (17:14 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 8 Nov 2023 23:14:52 +0000 (17:14 -0600)
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
copy-firmware.sh

index cca3913bd944c12684f90411463ec036e1fe93ef..f9b1f0ffc1c31c08c85d4bdc5c1cca692076885e 100755 (executable)
@@ -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