aoc24/load-todays-input.bash
2024-12-08 22:54:00 +01:00

5 lines
No EOL
190 B
Bash

day=$(date +%-e)
day_zero=$(date +%0e)
session=$(cat .sessioncookie)
mkdir -p input
curl -b "session=${session}" -o "./input/${day_zero}.txt" "https://adventofcode.com/2024/day/${day}/input"