aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2021-09-14 17:07:17 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2021-09-14 17:07:17 +0900
commit796b2c2d6d8a420637ec038da2e9e00df1265bc4 (patch)
tree772e1afa166ff928e5972bc883b65557e895581b /jobs
parent971be3870f9056793c608903ef2817de5a150510 (diff)
check-backup-of-jupyter-notebook: Update.
Diffstat (limited to 'jobs')
-rwxr-xr-xjobs/check-backup-of-jupyter-notebook.run4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/check-backup-of-jupyter-notebook.run b/jobs/check-backup-of-jupyter-notebook.run
index e984551..9b263a1 100755
--- a/jobs/check-backup-of-jupyter-notebook.run
+++ b/jobs/check-backup-of-jupyter-notebook.run
@@ -5,7 +5,7 @@ todays_backup="s3://qkbackup/jupyter-notebook/$(date "+%d")/"
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 }'