Skip to content

Commit 78f16af

Browse files
committed
fix watch
1 parent 408e082 commit 78f16af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rewatch/tests/watch.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cd ../testrepo
33

44
bold "Test: It should watch"
55

6-
if rewatch clean &> /dev/null;
6+
if rewatch clean ;
77
then
88
success "Repo Cleaned"
99
else
@@ -13,10 +13,10 @@ fi
1313

1414
exit_watcher() {
1515
# we need to kill the parent process (rewatch)
16-
kill $(pgrep -P $!);
16+
rm lib/rewatch.lock
1717
}
1818

19-
rewatch watch &>/dev/null &
19+
rewatch watch &
2020
success "Watcher Started"
2121

2222
echo 'Js.log("added-by-test")' >> ./packages/main/src/Main.res

0 commit comments

Comments
 (0)