From d1bad16621fa7d5ce415bd2e6a18b121c16048bf Mon Sep 17 00:00:00 2001 From: CeciliaKelley33Mm Date: Fri, 11 Oct 2024 17:54:19 +0700 Subject: [PATCH] =?UTF-8?q?remove=20the=20old=20check=20code=20the=20line?= =?UTF-8?q?=20amount=20really=20went=20=F0=9F=93=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- loop.sh | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/loop.sh b/loop.sh index 0a6b08f..1da22d4 100755 --- a/loop.sh +++ b/loop.sh @@ -60,37 +60,7 @@ requestWebhook() { } check() { - # currentTime=$(TZ=Etc/UTC date +"%H-%M") - - ### the following pattern is now deprecated. i am now using checkTime.js - ### which adds the start time by 5 hours - - # this is the pattern. the old machine will activate the new machine 1 hour before it terminates - - # 1 00:00 RUN - # 1 05:50 ACTIVATE 2 - # 1 06:00 TERMINATE - - # 2 05:50 RUN - # 2 10:50 ACTIVATE 3 - # 2 11:50 TERMINATE - - # 3 10:50 RUN - # 3 15:50 ACTIVATE 4 - # 3 16:50 TERMINATE - - # 4 15:50 RUN - # 4 20:50 ACTIVATE 5 - # 4 21:50 TERMINATE - - # 5 20:50 RUN - # 5 00:00 ACTIVATE 1 - # 5 01:50 TERMINATE - - # targetTimes=("00-00" "05-50" "10-50" "15-50" "20-50") - - # for target in "${targetTimes[@]}"; do - # if [[ "$currentTime" != "$target" ]]; then continue; fi + # checkTime.js adds the start time by 5 hours node checkTime.js $START_TIME exitCode=$? @@ -143,8 +113,6 @@ check() { eval "$command" fi - - # done } if [ "$1" == "true" ]; then