From fb73d56bd523a787087359caf718249f21bfa3f1 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Mon, 6 Dec 2021 09:22:08 -0500 Subject: [PATCH] fix logic bug in new input curl --- new.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new.sh b/new.sh index f0f4cf7..52e5379 100755 --- a/new.sh +++ b/new.sh @@ -5,7 +5,7 @@ __year=2021 if [ "${1}" != "" ]; then padded=$(printf "%02g" ${1}) mkdir -p ${padded}/inputs - touch ${padded}/inputs/{input,testinput} + touch ${padded}/inputs/testinput if [ ! -f "${padded}/inputs/input" ]; then curl -s -H "Cookie: session=`cat .cookie`" https://adventofcode.com/${__year}/day/${1##0}/input > "${padded}/inputs/input" fi