18 lines
259 B
Bash
Executable file
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
|
|
|