mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-06 04:54:48 +08:00
Force moving restic binaries to archive folder
This commit is contained in:
parent
de51df676a
commit
d73ad55646
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ for platform in "windows_386" "windows_amd64" "linux_arm" "linux_arm64" "linux_a
|
|||
if [ ! -f "${restic_filename}" ]; then
|
||||
echo "Moving earlier version to archive"
|
||||
[ -d ARCHIVES ] || mkdir ARCHIVES
|
||||
mv restic_*_${platform} ARCHIVES/ > /dev/null 2>&1
|
||||
mv -f restic_*_${platform} ARCHIVES/ > /dev/null 2>&1
|
||||
mv -f restic_*_${platform}.exe ARCHIVES/ > /dev/null 2>&1
|
||||
echo "Downloading ${restic_filename}"
|
||||
if [ "${platform:0:7}" == "windows" ]; then
|
||||
ext=zip
|
||||
|
|
Loading…
Add table
Reference in a new issue