Show "FULL DOWNLOAD" message only when really downloading.
This commit is contained in:
parent
a645d3a041
commit
6215a5c992
|
@ -9,7 +9,6 @@ DEST_FILE=`echo $@ | awk '{print $3}'`
|
||||||
if [ -f "$DEST_FILE" ]; then
|
if [ -f "$DEST_FILE" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "======= FULL DOWNLOAD... ======"
|
|
||||||
echo "======= PARAMS: $@ ======"
|
echo "======= PARAMS: $@ ======"
|
||||||
URL_FNAME=${URL##*/}
|
URL_FNAME=${URL##*/}
|
||||||
DEST_FILE_DIR=${DEST_FILE%/*}
|
DEST_FILE_DIR=${DEST_FILE%/*}
|
||||||
|
@ -19,6 +18,7 @@ else
|
||||||
mv -f $DEST_FILE_DIR/$URL_FNAME $DEST_FILE
|
mv -f $DEST_FILE_DIR/$URL_FNAME $DEST_FILE
|
||||||
exit $?
|
exit $?
|
||||||
else
|
else
|
||||||
|
echo "======= FULL DOWNLOAD... ======"
|
||||||
/usr/bin/wget -t1 --passive-ftp $@
|
/usr/bin/wget -t1 --passive-ftp $@
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue