mirror of
https://github.com/netinvent/npbackup.git
synced 2025-12-19 06:29:55 +08:00
Fix find syntax
This commit is contained in:
parent
21dbc0a482
commit
7a03de065d
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ for platform in "${platforms[@]}"; do
|
||||||
[ -d ARCHIVES ] || mkdir ARCHIVES
|
[ -d ARCHIVES ] || mkdir ARCHIVES
|
||||||
mv -f restic_*_${platform} ARCHIVES/ > /dev/null 2>&1
|
mv -f restic_*_${platform} ARCHIVES/ > /dev/null 2>&1
|
||||||
# Move all restic executables except restic legacy binary
|
# 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
|
# Avoid moving restic
|
||||||
echo "Downloading ${restic_filename}"
|
echo "Downloading ${restic_filename}"
|
||||||
if [ "${platform:0:7}" == "windows" ]; then
|
if [ "${platform:0:7}" == "windows" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue