#!/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