advent-of-code-2023/bash/main.sh
2023-12-02 13:51:15 +01:00

17 lines
286 B
Bash
Executable file

#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
case "$1" in
"day1")
"$SCRIPT_DIR/day1.sh"
;;
"day2")
"$SCRIPT_DIR/day2.sh"
;;
*)
echo "Invalid day"
exit 1
;;
esac