This commit is contained in:
Daniel Flanagan 2022-12-01 16:44:35 -06:00
parent 9a45b6c817
commit 2e4a4a8df5
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if [ -f "$f" ]; then
exit 0
fi
url="https://adventofcode.com/$AOC_YEAR/day/$DAY/input"
cookie="$(cat "$HOME/.advent-of-code-auth-cookie")"
cookie="$(cat "$HOME/.advent-of-code-session-cookie")"
mkdir -p "$(dirname "$f")"
if curl --fail-with-body -X GET "$url" -H "Cookie:$cookie" > "$f"; then
echo "Downloaded $url to $f"