diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2021-09-14 03:59:02 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2021-09-14 03:59:02 +0900 |
commit | 1bc43d364d90f7496464ead6a01dc27ef1574537 (patch) | |
tree | 45f9014e5e796dd6b2f15259cde841489dbed0b7 /jobs | |
parent | 332646d5a62ebd6333f1f745d0b058f9137fbb54 (diff) |
check-backup-of-jupyter-notebook: Update.
Diffstat (limited to 'jobs')
-rwxr-xr-x | jobs/check-backup-of-jupyter-notebook.run | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jobs/check-backup-of-jupyter-notebook.run b/jobs/check-backup-of-jupyter-notebook.run index 77eb8fe..626e640 100755 --- a/jobs/check-backup-of-jupyter-notebook.run +++ b/jobs/check-backup-of-jupyter-notebook.run @@ -4,9 +4,8 @@ set -euo pipefail todays_backup="s3://qkbackup/jupyter-notebook/$(date "+%d")/" echo "Check $todays_backup." output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")" -echo "$output" # UTC の時刻で日付が同日の場合はバックアップに成功していると見做す echo "$output" |\ awk -v utc_today="$(TZ=UTC date "+%F")" \ - '$1 != utc_today { print "Failed!"; exit 1 }' + '$1 != utc_today { print "Failed!"; exit 1 } ; { print }' |