File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 14
14
fi
15
15
16
16
exit_watcher () {
17
- # Try to find child process, if not found just kill the process directly
17
+ # kill watcher by removing lock file
18
18
rm lib/rewatch.lock
19
19
}
20
20
21
21
rewatch_bg watch > /dev/null 2>&1 &
22
22
success " Watcher Started"
23
+ ps
23
24
24
25
sleep 1
25
26
26
27
if rewatch build | grep ' Could not start Rewatch:' & > /dev/null;
27
28
then
28
- # rm output.txt
29
29
success " Lock is correctly set"
30
30
exit_watcher
31
31
else
32
- # rm output.txt
33
32
error " Not setting lock correctly"
34
33
exit_watcher
35
34
exit 1
Original file line number Diff line number Diff line change 12
12
fi
13
13
14
14
exit_watcher () {
15
- # we need to kill the parent process (rewatch)
15
+ # kill watcher by removing lock file
16
16
rm lib/rewatch.lock
17
17
}
18
18
You can’t perform that action at this time.
0 commit comments