upload.ready.deluge.sh no-progress

This commit is contained in:
2020-12-28 01:51:45 +04:00
parent cb27c91fc9
commit 881fe061b9

View File

@@ -1,10 +1,16 @@
#!/bin/bash
set -x set -x
if [ "$1" != "no-progress" ]; then
PROG=--progress
else
shift
fi
if [ ! -z "$*" ]; then if [ ! -z "$*" ]; then
for i in "$@"; do for i in "$@"; do
/usr/bin/rsync -av --inplace --progress --append-verify "/mnt/ssd/deluge/done/$i" "hrat:tmp/tmp/done/" /usr/bin/rsync -av --inplace --progress --append-verify "/mnt/ssd/deluge/done/$i" "hrat:tmp/tmp/done/"
done done
else else
/usr/bin/rsync -av --inplace --append-verify /mnt/ssd/deluge/done hrat:tmp/tmp /usr/bin/rsync -av --inplace --append-verify $PROG /mnt/ssd/deluge/done hrat:tmp/tmp
fi fi