mirror of
https://github.com/teddysun/across.git
synced 2025-10-29 16:05:32 +08:00
Update comments
Fixed "too many arguments" error
This commit is contained in:
@@ -190,10 +190,10 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_backup() {
|
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"
|
log "Tar backup file start"
|
||||||
tar -zcPf ${TARFILE} ${BACKUP[*]}
|
tar -zcPf ${TARFILE} ${BACKUP[@]}
|
||||||
if [ $? -gt 1 ]; then
|
if [ $? -gt 1 ]; then
|
||||||
log "Tar backup file failed"
|
log "Tar backup file failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user