From 7a03de065d5fdda6d43ba79769569895e3d0275f Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 26 Nov 2024 10:43:58 +0100 Subject: [PATCH] Fix find syntax --- RESTIC_SOURCE_FILES/update_restic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RESTIC_SOURCE_FILES/update_restic.sh b/RESTIC_SOURCE_FILES/update_restic.sh index ff8fb5b..b2a39fe 100755 --- a/RESTIC_SOURCE_FILES/update_restic.sh +++ b/RESTIC_SOURCE_FILES/update_restic.sh @@ -23,7 +23,7 @@ for platform in "${platforms[@]}"; do [ -d ARCHIVES ] || mkdir ARCHIVES mv -f restic_*_${platform} ARCHIVES/ > /dev/null 2>&1 # Move all restic executables except restic legacy binary - find ./ -type f -mindepth 1 -maxdepth 1 -name "restic_*${platform}.exe" -and ! -name "restic_0.16.2_windows_386.exe" -exec mv '{}' ARCHIVES \; + find ./ -mindepth 1 -maxdepth 1 -type f -name "restic_*${platform}.exe" -and ! -name "restic_0.16.2_windows_386.exe" -exec mv '{}' ARCHIVES \; # Avoid moving restic echo "Downloading ${restic_filename}" if [ "${platform:0:7}" == "windows" ]; then