make getpuzzle generic

This commit is contained in:
2024-12-01 06:19:15 +02:00
parent 07621181b0
commit afa56835c4

View File

@@ -1,8 +1,9 @@
#!/bin/bash
source "$(dirname "$0")/../.env"
day=$(date +%-d)
year=$1
day=$2
echo "Getting input for day $day"
echo "Getting input for $year day $day"
curl -s -S --cookie "$COOKIE" --output ./input.txt https://adventofcode.com/2024/day/$day/input
curl -s -S --cookie "$COOKIE" --output ./input.txt https://adventofcode.com/$year/day/$day/input