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
|
||||
exit 0
|
||||
else
|
||||
echo "======= FULL DOWNLOAD... ======"
|
||||
echo "======= PARAMS: $@ ======"
|
||||
URL_FNAME=${URL##*/}
|
||||
DEST_FILE_DIR=${DEST_FILE%/*}
|
||||
|
@ -19,6 +18,7 @@ else
|
|||
mv -f $DEST_FILE_DIR/$URL_FNAME $DEST_FILE
|
||||
exit $?
|
||||
else
|
||||
echo "======= FULL DOWNLOAD... ======"
|
||||
/usr/bin/wget -t1 --passive-ftp $@
|
||||
exit $?
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue