diff options
-rwxr-xr-x | jobs/check-backup-of-email.run | 2 | ||||
-rwxr-xr-x | jobs/check-backup-of-jupyter-notebook.run | 2 | ||||
-rwxr-xr-x | jobs/check-backup-of-nextcloud.run | 2 |
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 }' |