diff options
Diffstat (limited to '')
| -rwxr-xr-x | aoc | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -19,8 +19,10 @@ daynozero="$(echo "$day" | sed 's/^0//')" | |||
| 19 | cd "$basedir/$year/$day" | 19 | cd "$basedir/$year/$day" |
| 20 | 20 | ||
| 21 | # Download the puzzle input and save it to input.txt | 21 | # Download the puzzle input and save it to input.txt |
| 22 | url="https://adventofcode.com/$year/day/$daynozero/input" | 22 | if [ ! -e input.txt ]; then |
| 23 | curl "$url" -H "cookie: session=$AOC_SESSION_COOKIE" -o input.txt | 23 | url="https://adventofcode.com/$year/day/$daynozero/input" |
| 24 | curl "$url" -H "cookie: session=$AOC_SESSION_COOKIE" -o input.txt | ||
| 25 | fi | ||
| 24 | 26 | ||
| 25 | # Open a tmux session with lynx in its own windows, and an editor and a | 27 | # Open a tmux session with lynx in its own windows, and an editor and a |
| 26 | # terminal in split view. | 28 | # terminal in split view. |
