advent-of-code-2023/bash/main.sh

17 lines
286 B
Bash
Raw Permalink Normal View History

2023-12-01 09:56:09 +00:00
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
case "$1" in
"day1")
"$SCRIPT_DIR/day1.sh"
;;
2023-12-02 12:51:15 +00:00
"day2")
"$SCRIPT_DIR/day2.sh"
;;
2023-12-01 09:56:09 +00:00
*)
echo "Invalid day"
exit 1
;;
esac