chore(tools): fix parsed as octal

This commit is contained in:
setop 2024-12-11 12:43:26 +01:00
parent 071ed13c4f
commit 38f158b30d
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1,3 @@
. .venv/bin/activate
export PYTHONPATH=${PYTHONPATH:-$(realpath lib)}
command cd "$(./get_input.sh)" && less input command cd "$(./get_input.sh)" && less input

View File

@ -5,6 +5,7 @@ cd "$(dirname $(realpath $0))"
. .env . .env
d=$(date +%d) d=$(date +%d)
e=$(bc <<< "$d + 0")
mkdir -p d${d} mkdir -p d${d}
cd d${d} cd d${d}
@ -16,6 +17,6 @@ cd d${d}
-H 'Connection: close' \ -H 'Connection: close' \
-H "Cookie: session=$SESSION" \ -H "Cookie: session=$SESSION" \
-o input \ -o input \
"https://adventofcode.com/2024/day/$(( $d + 0 ))/input" "https://adventofcode.com/2024/day/$e/input"
echo $(realpath .) echo $(realpath .)