s+ow: fix new hour wait regression (#56)

This commit is contained in:
Mark Joshwel 2023-11-03 09:10:28 +08:00 committed by GitHub
parent ce45f22729
commit abaa87c85e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
s+ow
View file

@ -303,7 +303,7 @@ run() {
if [ -n "$SPOW_CRON" ]; then
notify "Waiting for the new hour..."
printf "waiting until the new hour...\n"
while [ "$(date +'%M')" -lt 59 ]; do
while [ "$(date +'%M')" -eq 58 ]; do
printf " $(date)\n"
sleep 1
done