diff --git a/lib/update-bridgehead.sh b/lib/update-bridgehead.sh index ab39cca..c661595 100755 --- a/lib/update-bridgehead.sh +++ b/lib/update-bridgehead.sh @@ -103,7 +103,7 @@ else hc_send log "$RES" fi -if [ -z "${BACKUP_DIRECTORY}" ]; then +if [ -n "${BACKUP_DIRECTORY}" ]; then if [ ! -d "$BACKUP_DIRECTORY" ]; then message="Performing automatic maintenance: Attempting to create backup directory $BACKUP_DIRECTORY." hc_send log "$message"