From b8a759b141e0fcdd75d456850e3e1ba7b41f405b Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 9 Sep 2023 22:52:51 +0200 Subject: [PATCH] hotreload: don't die on build errors --- hotreload.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hotreload.sh b/hotreload.sh index fc91389..993db97 100644 --- a/hotreload.sh +++ b/hotreload.sh @@ -5,8 +5,10 @@ PID=$(pidof delphi.market) set -e function restart_server() { + set +e [[ -z "$PID" ]] || kill -15 $PID ENV=development make build -B + set -e ./delphi.market >> server.log 2>&1 & PID=$(pidof delphi.market) }