File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 4.2.4 (2017/11/01)
4
+
5
+ * Do not exit if connection failed
6
+
3
7
## 4.2.3 (2017/10/30)
4
8
5
9
* Fix files download again (Issue #32 )
Original file line number Diff line number Diff line change 2
2
3
3
# ##################################################################################
4
4
# #
5
- # FTPGrab v4.2.3 #
5
+ # FTPGrab v4.2.4 #
6
6
# #
7
7
# Simple script to grab your files from a remote FTP server. #
8
8
# #
@@ -360,7 +360,8 @@ function ftpgrabStart() {
360
360
then
361
361
ftpgrabEcho " ERROR: Curl error $_CON_EXIT_CODE "
362
362
ftpgrabEcho " More infos: https://curl.haxx.se/libcurl/c/libcurl-errors.html"
363
- exit 1
363
+ ftpgrabEcho " --------------"
364
+ return 1
364
365
fi
365
366
else
366
367
ftpgrabDebug " checkConnection: wget --spider -q --tries=1 --timeout=5 $FTP_WGET -O - " ftp://${FTP_HOST} :${FTP_PORT}${FTP_SRC} " "
@@ -370,7 +371,8 @@ function ftpgrabStart() {
370
371
then
371
372
ftpgrabEcho " ERROR: Wget error $_CON_EXIT_CODE "
372
373
ftpgrabEcho " More infos: http://www.gnu.org/software/wget/manual/html_node/Exit-Status.html"
373
- exit 1
374
+ ftpgrabEcho " --------------"
375
+ return 1
374
376
fi
375
377
fi
376
378
@@ -551,7 +553,7 @@ mkdir -p "$HASH_DIR"
551
553
if [ ! -d " $HASH_DIR " ]; then ftpgrabEcho " ERROR: Cannot create dir $HASH_DIR with $( whoami) user" ; exit 1; fi
552
554
if [ ! -w " $HASH_DIR " ]; then ftpgrabEcho " ERROR: Dir $HASH_DIR is not writable by $( whoami) " ; exit 1; fi
553
555
554
- ftpgrabEcho " FTPGrab v4.2.3 ($BASENAME_FILE - $( date +" %Y/%m/%d %H:%M:%S" ) )"
556
+ ftpgrabEcho " FTPGrab v4.2.4 ($BASENAME_FILE - $( date +" %Y/%m/%d %H:%M:%S" ) )"
555
557
ftpgrabEcho " --------------"
556
558
557
559
# Check required packages
You can’t perform that action at this time.
0 commit comments