summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rw-r--r--run.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100644
index 0000000..9582548
--- /dev/null
+++ b/run.sh
@@ -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