From 3cf0099ed6a9acc5a65f7b9f761d61d77faa9e82 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Tue, 29 Nov 2016 15:52:30 +0900 Subject: [PATCH] update comment --- backup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backup.sh b/backup.sh index c76092b..40e5213 100644 --- a/backup.sh +++ b/backup.sh @@ -226,10 +226,10 @@ gdrive_upload() { # Tranferring backup file to FTP server ftp_upload() { if ${FTP_FLG}; then - [ -z ${FTP_HOST} ] && echo "Error: FTP_HOST can not be empty!" && exit 1 - [ -z ${FTP_USER} ] && echo "Error: FTP_USER can not be empty!" && exit 1 - [ -z ${FTP_PASS} ] && echo "Error: FTP_PASS can not be empty!" && exit 1 - [ -z ${FTP_DIR} ] && echo "Error: FTP_DIR can not be empty!" && exit 1 + [ -z ${FTP_HOST} ] && log "Error: FTP_HOST can not be empty!" && exit 1 + [ -z ${FTP_USER} ] && log "Error: FTP_USER can not be empty!" && exit 1 + [ -z ${FTP_PASS} ] && log "Error: FTP_PASS can not be empty!" && exit 1 + [ -z ${FTP_DIR} ] && log "Error: FTP_DIR can not be empty!" && exit 1 local FTP_OUT_FILE=$(basename ${OUT_FILE}) log "Tranferring backup file to FTP server"