Update comments

Fixed "too many arguments" error
This commit is contained in:
Teddysun 2020-07-13 15:14:56 +09:00
parent 30be1f639f
commit a0b4759412
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -190,10 +190,10 @@ EOF
}
start_backup() {
[ "${BACKUP[*]}" == "" ] && echo "Error: You must to modify the [$(basename $0)] config before run it!" && exit 1
[ "${#BACKUP[@]}" -eq 0 ] && echo "Error: You must to modify the [$(basename $0)] config before run it!" && exit 1
log "Tar backup file start"
tar -zcPf ${TARFILE} ${BACKUP[*]}
tar -zcPf ${TARFILE} ${BACKUP[@]}
if [ $? -gt 1 ]; then
log "Tar backup file failed"
exit 1