contrib/hotreload: be quiet

This commit is contained in:
Simon Ser 2020-02-12 00:29:51 +01:00
parent 3a3887b358
commit 30a26051aa
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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