adventofcode/run_day

20 lines
217 B
Plaintext
Raw Permalink Normal View History

2023-11-28 16:15:16 +01:00
#!/bin/bash
if [ -z "$1" ]; then
echo "Expected year"
exit;
fi
if [ -z "$2" ]; then
echo "Expected day"
exit;
fi
2023-11-28 16:24:58 +01:00
if [ ${2} -ge 25 ]; then
2023-11-28 16:15:16 +01:00
echo "Invalid day"
exit;
fi
cd $1
2023-11-28 16:24:58 +01:00
./run_day $2 $1