diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2023-12-02 00:52:28 +0200 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-10-28 23:20:45 +0200 |
| commit | ffc7ea9c70a57384b6d9df59c35f0656eebd0dca (patch) | |
| tree | fed7dd3c34dc6bd4869666c082a61a3af2bf5458 | |
| parent | README.md (diff) | |
| download | aoc23-ffc7ea9c70a57384b6d9df59c35f0656eebd0dca.tar.gz aoc23-ffc7ea9c70a57384b6d9df59c35f0656eebd0dca.zip | |
update init.sh
| -rwxr-xr-x | init.sh | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -8,11 +8,12 @@ if [ $# -eq 0 ]; then | |||
| 8 | fi | 8 | fi |
| 9 | 9 | ||
| 10 | DAY=$1 | 10 | DAY=$1 |
| 11 | YEAR=2023 | 11 | YEAR="${PWD##*/}" |
| 12 | DIR=$(printf "day%02d" $DAY) | 12 | DIR=$(printf "day%02d" $DAY) |
| 13 | echo "Initializing day $DAY in directory $DIR" | 13 | echo "Initializing day $DAY in directory $DIR" |
| 14 | 14 | ||
| 15 | mkdir -p $DIR && curl "https://adventofcode.com/$YEAR/day/$DAY/input" -H "Cookie: session=$ADVENT_SESSION" >$DIR/input.txt | 15 | mkdir -p $DIR && |
| 16 | curl "https://adventofcode.com/$YEAR/day/$DAY/input" -H "Cookie: session=$ADVENT_SESSION" >$DIR/input.txt | ||
| 16 | echo \ | 17 | echo \ |
| 17 | 'const std = @import("std"); | 18 | 'const std = @import("std"); |
| 18 | const print = std.debug.print; | 19 | const print = std.debug.print; |
