roxy-docs/start.sh

18 lines
259 B
Bash
Raw Normal View History

2024-02-20 11:42:49 +00:00
#!/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