Add solution for 2015 Day 19

This commit is contained in:
Thraix committed 2026-07-30 00:59:49 +02:00
1 parent ce9bc29372
commit 9ef2809593
4 files changed
+265 -12

No files matched your search

+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