aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2021-09-15 21:44:44 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2021-09-15 21:44:44 +0900
commite0d838b8412f506b877c99f9cb509477535b0024 (patch)
tree845199143e56443b6322e37e31fdf1655f87292f /jobs
parentb49dafd4b6ac6c87f3db643455f3f4e24377b968 (diff)
check-backup-of-*: Update.
Diffstat (limited to 'jobs')
-rwxr-xr-xjobs/check-backup-of-email.run2
-rwxr-xr-xjobs/check-backup-of-jupyter-notebook.run2
-rwxr-xr-xjobs/check-backup-of-nextcloud.run2
3 files changed, 3 insertions, 3 deletions
diff --git a/jobs/check-backup-of-email.run b/jobs/check-backup-of-email.run
index 26c2885..67f4cf6 100755
--- a/jobs/check-backup-of-email.run
+++ b/jobs/check-backup-of-email.run
@@ -8,4 +8,4 @@ output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")"
# UTC の時刻で日付が当日の場合はバックアップに成功していると見做す
echo "$output" |\
awk -v utc_today="$(TZ=UTC date "+%F")" \
- '$1 != utc_today { print "Failed!"; exit 1 } ; { print }'
+ '$1 != utc_today && $3 > 0 { print "Failed!"; exit 1 } ; { print }'
diff --git a/jobs/check-backup-of-jupyter-notebook.run b/jobs/check-backup-of-jupyter-notebook.run
index 78fdc7a..9a749f0 100755
--- a/jobs/check-backup-of-jupyter-notebook.run
+++ b/jobs/check-backup-of-jupyter-notebook.run
@@ -8,4 +8,4 @@ output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")"
# UTC の時刻で日付が当日の場合はバックアップに成功していると見做す
echo "$output" |\
awk -v utc_today="$(TZ=UTC date "+%F")" \
- '$1 != utc_today { print "Failed!"; exit 1 } ; { print }'
+ '$1 != utc_today && $3 > 0 { print "Failed!"; exit 1 } ; { print }'
diff --git a/jobs/check-backup-of-nextcloud.run b/jobs/check-backup-of-nextcloud.run
index 3ea0715..20effeb 100755
--- a/jobs/check-backup-of-nextcloud.run
+++ b/jobs/check-backup-of-nextcloud.run
@@ -8,4 +8,4 @@ output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")"
# UTC の時刻で日付が当日の場合はバックアップに成功していると見做す
echo "$output" |\
awk -v utc_today="$(TZ=UTC date "+%F")" \
- '$1 != utc_today { print "Failed!"; exit 1 } ; { print }'
+ '$1 != utc_today && $3 > 0 { print "Failed!"; exit 1 } ; { print }'