summaryrefslogtreecommitdiff
path: root/system-profiles/openssh/known-hosts/expiration.gup
blob: c81692629383212aecd860047dd85e42c967f6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env zsh
set -eu

year=$(date +'%Y')
while [[ $((($(date -d "${year}0101" +'%s') - $(date +'%s')) / 86400)) -lt 150 ]]; do
  year=$((year + 1))
done

echo "${year}0101" > $1

gup --always
gup --contents $1