diff --git a/.gitignore b/.gitignore index ea8c4bf..d5b75b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +input diff --git a/fetchinput.sh b/fetchinput.sh index 3aa77a0..7160b8f 100755 --- a/fetchinput.sh +++ b/fetchinput.sh @@ -6,4 +6,4 @@ DAY=`date +%d` ! [ "$1" = "" ] && printf "%d" $1 >/dev/null 2>&1 && DAY=$1 [ "$AOC_SESSION_COOKIE" = "" ] && echo "\$AOC_SESSION_COOKIE not set" && exit 1 -echo -e curl -i https://adventofcode.com/2022/day/$DAY/input --cookie "session=$AOC_SESSION_COOKIE" -o day`printf "%02d" $DAY`/input +curl -i https://adventofcode.com/2022/day/$DAY/input --cookie "session=$AOC_SESSION_COOKIE" -o day`printf "%02d" $DAY`/input