From a46490af772aa79cb4e5a079970a2446477cf81c Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Fri, 11 Jan 2019 00:24:50 +0100 Subject: [PATCH] OR instead AND --- func/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/main.sh b/func/main.sh index eb1bcd37..ded0eb4b 100644 --- a/func/main.sh +++ b/func/main.sh @@ -966,7 +966,7 @@ wait_for_backup_if_it_is_not_time_for_backup() { if pgrep -x "v-backup-users" > /dev/null then hour=$(date +"%H"); - while [ "$hour" -gt "6" ] && [ "$hour" -lt "1" ]; do + while [ "$hour" -gt "6" ] || [ "$hour" -lt "1" ]; do # if [ "$WAIT_LOOP_ENTERED" -eq 0 ]; then # do something when enter sleeping state # $BIN/v-restart-web-backend