Added timeout of 5 since latest file change

This commit is contained in:
2022-02-05 15:10:26 +01:00
parent 5e1ea8d832
commit d3be192a3b

View File

@@ -30,6 +30,16 @@ stop() {
kill $(pidof TheAdversary)
}
process() {
sleep 5
cp -rf frontend/ backend/ out/
build
echo "Restarting"
stop
start &
}
main() {
init
cp -rf frontend/ backend/ out/
@@ -39,10 +49,10 @@ main() {
fi
while inotifywait -r -e modify frontend/ backend/; do
cp -rf frontend/ backend/ out/
build
stop
start &
if [ -d /proc/$! ]; then
kill $!
fi
process &
done
}