diff options
Diffstat (limited to 'system-profiles/openssh/known-hosts/expiration.gup')
-rw-r--r-- | system-profiles/openssh/known-hosts/expiration.gup | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system-profiles/openssh/known-hosts/expiration.gup b/system-profiles/openssh/known-hosts/expiration.gup index c8169262..49af61f4 100644 --- a/system-profiles/openssh/known-hosts/expiration.gup +++ b/system-profiles/openssh/known-hosts/expiration.gup | |||
@@ -1,6 +1,8 @@ | |||
1 | #!/usr/bin/env zsh | 1 | #!/usr/bin/env zsh |
2 | set -eu | 2 | set -eu |
3 | 3 | ||
4 | export TZ=UTC | ||
5 | |||
4 | year=$(date +'%Y') | 6 | year=$(date +'%Y') |
5 | while [[ $((($(date -d "${year}0101" +'%s') - $(date +'%s')) / 86400)) -lt 150 ]]; do | 7 | while [[ $((($(date -d "${year}0101" +'%s') - $(date +'%s')) / 86400)) -lt 150 ]]; do |
6 | year=$((year + 1)) | 8 | year=$((year + 1)) |