aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-02-12 00:29:51 +0100
committerSimon Ser <contact@emersion.fr>2020-02-12 00:29:51 +0100
commit30a26051aae3b6edc9dc4ee115d47b3febc625b1 (patch)
tree3bdc11c8a039cc7b20729a8ea9e8a6d823ec3f54
parent3a3887b358a5eaf73440dfd9f4732b356f022bf0 (diff)
downloadalps-30a26051aae3b6edc9dc4ee115d47b3febc625b1.tar.gz
alps-30a26051aae3b6edc9dc4ee115d47b3febc625b1.zip
contrib/hotreload: be quiet
-rwxr-xr-xcontrib/hotreload.sh4
1 files 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