From b534318b95dc31e6b42b2000c73140f72a528e71 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 25 Jul 2019 19:20:14 -0400 Subject: [PATCH] live-reload.sh: run again when dir content changes --- live-reload.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/live-reload.sh b/live-reload.sh index 5e344692..20b9bd70 100755 --- a/live-reload.sh +++ b/live-reload.sh @@ -5,6 +5,9 @@ # no_embedded (resources) is used to speed up the compilation -find src harmonyqml.pro -type f | -entr -cdnr sh -c \ - 'qmake CONFIG+="dev no_embedded" && make && ./harmonyqml --debug' +while true; do + find src harmonyqml.pro -type f | + entr -cdnr sh -c \ + 'qmake CONFIG+="dev no_embedded" && make && ./harmonyqml --debug' + sleep 0.2 +done