Skip to content

Commit

Permalink
Improve restic update script handling
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Nov 13, 2024
1 parent fd2f116 commit dd20f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RESTIC_SOURCE_FILES/update_restic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ for platform in "${platforms[@]}"; do
echo "Moving earlier version to archive"
[ -d ARCHIVES ] || mkdir ARCHIVES
mv -f restic_*_${platform} ARCHIVES/ > /dev/null 2>&1
# Move all except restic legacy binary
mv -f !(restic_0.16.2_${platform}.exe) 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 \;
# Avoid moving restic
echo "Downloading ${restic_filename}"
if [ "${platform:0:7}" == "windows" ]; then
Expand Down

0 comments on commit dd20f4b

Please sign in to comment.