Show "FULL DOWNLOAD" message only when really downloading.

This commit is contained in:
Kolan Sh 2014-01-16 12:39:41 +04:00
parent a645d3a041
commit 6215a5c992
1 changed files with 1 additions and 1 deletions

View File

@ -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