From 2e4a4a8df5ae15bef8030ad3b089da61a2168427 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 1 Dec 2022 16:44:35 -0600 Subject: [PATCH] Cookie --- 2022/rust/fetch_input.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/rust/fetch_input.sh b/2022/rust/fetch_input.sh index 121ddfd..18d3fd3 100755 --- a/2022/rust/fetch_input.sh +++ b/2022/rust/fetch_input.sh @@ -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"