upload.ready.deluge.sh no-progress
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user