diff options
Diffstat (limited to 'jobs')
-rwxr-xr-x | jobs/check-backup-of-nextcloud.run | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/check-backup-of-nextcloud.run b/jobs/check-backup-of-nextcloud.run index e447bcb..3ea0715 100755 --- a/jobs/check-backup-of-nextcloud.run +++ b/jobs/check-backup-of-nextcloud.run @@ -5,7 +5,7 @@ todays_backup="s3://qkbackup/nextcloud/$(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 }' |