make getpuzzle generic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user