Add solution for 2015 Day 19

This commit is contained in:
Thraix
2026-07-29 00:30:29 +02:00
parent ce9bc29372
commit 3154e63cc1
4 changed files with 265 additions and 12 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ for item in $list; do
dir="res/$year/day$day/input.txt"
if [ ! -e $dir ]; then
webitem=${day#0}
echo "Fetching $dir"
echo "Fetching $dir from https://adventofcode.com/$year/day/$webitem/input"
tmp_file=$(mktemp)
HTTP_CODE=$(curl -s -w "%{http_code}" -o "$tmp_file" --cookie cookies.txt https://adventofcode.com/$year/day/$webitem/input)
if [ "$HTTP_CODE" -eq 200 ]; then