Update main.sh

This commit is contained in:
dpeca 2020-02-24 19:34:38 +01:00 committed by GitHub
commit 57ee689651
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,7 +183,8 @@ is_type_valid() {
is_backup_enabled() { is_backup_enabled() {
BACKUPS=$(grep "^BACKUPS=" $USER_DATA/user.conf | cut -f2 -d \') BACKUPS=$(grep "^BACKUPS=" $USER_DATA/user.conf | cut -f2 -d \')
if [ -z "$BACKUPS" ] || [[ "$BACKUPS" -le '0' ]]; then if [ -z "$BACKUPS" ] || [[ "$BACKUPS" -le '0' ]]; then
check_result $E_DISABLED "user backup is disabled" check_result 0 "user backup is disabled"
exit 0
fi fi
} }