diff options
| author | Mike Vink <ivi@vinkies.net> | 2023-12-02 22:10:34 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2023-12-10 20:35:22 +0100 |
| commit | 9dbbbc4fe5d85e917e8efa977501b4ebacb349be (patch) | |
| tree | 06339fa764a7dacd9b1f6e2093e0e9cdba4c2f8b /run.sh | |
use tree for day1, why not 🐒
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 |
