]> git.proxmox.com Git - mirror_linux-firmware.git/blobdiff - copy-firmware.sh
Intel Bluetooth: Update firmware file for Solar Intel Bluetooth AX210
[mirror_linux-firmware.git] / copy-firmware.sh
index 3026c216ea6d9132b4342e59e6a2e6e987191479..f9b1f0ffc1c31c08c85d4bdc5c1cca692076885e 100755 (executable)
@@ -64,6 +64,16 @@ while test $# -gt 0; do
     esac
 done
 
+if [ -z "$destdir" ]; then
+       echo "ERROR: destination directory was not specified"
+       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