diff options
Diffstat (limited to 'run.sh')
| -rw-r--r-- | run.sh | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#!/bin/sh +day=$1 +token=$2 +inputdir="input/$day" +mkdir -p $inputdir +if ! [ -f "$inputdir/in.txt" ]; then + curl \ + -s \ + -o input/$day/in.txt \ + --cookie "session=$token" \ + -- \ + https://adventofcode.com/2023/day/$day/input +else + echo "already got input!" +fi +cargo run --bin main |
