2024/get_input.sh

8 lines
202 B
Bash
Executable File

#!/bin/bash
day=$1
if [ ! -d day${day} ]; then
mkdir day${day}
cp template/* day${day}
fi
curl -o day${day}/input --cookie ~/AdventOfCode/2024/cookies.txt https://adventofcode.com/2024/day/$day/input