aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2021-09-14 17:06:05 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2021-09-14 17:06:05 +0900
commit38d704941c1932cb1f35874fc6605ede631eb3ec (patch)
tree4c13e9657ed56dd6ec4ad33c13ba5b274fe2e10f
parent0c985e8fdcbfa827327971e6d4771f177615ae60 (diff)
check-backup-of-email: Update.
-rwxr-xr-xjobs/check-backup-of-email.run4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/check-backup-of-email.run b/jobs/check-backup-of-email.run
index 97af470..26c2885 100755
--- a/jobs/check-backup-of-email.run
+++ b/jobs/check-backup-of-email.run
@@ -5,7 +5,7 @@ todays_backup="s3://qkbackup/email/$(date "+%w")/"
echo "Check $todays_backup."
output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")"
-# UTC の時刻で日付が前日の場合はバックアップに成功していると見做す
+# UTC の時刻で日付が当日の場合はバックアップに成功していると見做す
echo "$output" |\
- awk -v utc_today="$(TZ=UTC date "+%F" -d '1 day ago')" \
+ awk -v utc_today="$(TZ=UTC date "+%F")" \
'$1 != utc_today { print "Failed!"; exit 1 } ; { print }'