mirror of
https://git.proxmox.com/git/mirror_linux-firmware
synced 2025-05-11 08:33:30 +00:00
Ensure rdfind is installed
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
This commit is contained in:
parent
195eae5962
commit
cf8315ded9
@ -69,6 +69,11 @@ if [ -z "$destdir" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# 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
|
test -f "$f" || continue
|
||||||
|
Loading…
Reference in New Issue
Block a user