scripts(download_input): add session override

This commit is contained in:
Felix Bargfeldt 2024-11-23 06:45:35 +01:00
parent b8b7f50e5d
commit 51ead1c1a7
Signed by: Defelo
GPG key ID: 2A05272471204DD3

View file

@ -46,6 +46,9 @@ echo $year/$day
mkdir -p .cache/$year
session=$(cat .cache/session)
if [[ -n "$AOC_SESSION" ]]; then
session="$AOC_SESSION"
fi
if [[ "$3" = "--live" ]] || [[ "$1" = "--live" ]]; then
termdown --no-figlet -T "$(printf 'AoC %d/%02d' $year $day)" -c 10 "$(date -d "$year-12-$day 00:00 EST")"