roxy-docs/start.sh
kitsunecafe b040598c56 initial
2024-02-20 06:43:51 -05:00

18 lines
259 B
Bash
Executable file

#!/usr/bin/env bash
terminate() {
pkill -9 -P "$build" > /dev/null
}
if [ -f ".env" ]; then
source .env
trap terminate SIGHUP SIGINT SIGQUIT SIGTERM
./inotify.sh "./generate.sh" &
build=$!
./generate.sh
cd "$OUT"
python3 -m http.server
fi