From 30a26051aae3b6edc9dc4ee115d47b3febc625b1 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 12 Feb 2020 00:29:51 +0100 Subject: contrib/hotreload: be quiet --- contrib/hotreload.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/hotreload.sh b/contrib/hotreload.sh index 98d9bf3..afe53ba 100755 --- a/contrib/hotreload.sh +++ b/contrib/hotreload.sh @@ -6,8 +6,8 @@ events=modify,create,delete,move targets="themes/ plugins/" inotifywait -e "$events" -m -r $targets | while read line; do - jobs - if [ -z "$(jobs -p)" ]; then + jobs >/dev/null # Reap status of any terminated job + if [ -z "$(jobs)" ]; then (sleep 0.5 && pkill -USR1 koushin) & fi done -- cgit v1.2.3