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 1414fi 
1515
1616exit_watcher () { 
17-   #  Try to find child process, if not found just kill the process directly 
17+   #  kill watcher by removing lock file 
1818  rm lib/rewatch.lock
1919}
2020
2121rewatch_bg watch >  /dev/null 2>&1  & 
2222success " Watcher Started" 
23+ ps
2324
2425sleep 1
2526
2627if  rewatch build |  grep ' Could not start Rewatch:'   & >  /dev/null;  
2728then 
28-   #  rm output.txt
2929  success " Lock is correctly set" 
3030  exit_watcher
3131else  
32-   #  rm output.txt
3332  error " Not setting lock correctly" 
3433  exit_watcher
3534  exit  1
Original file line number Diff line number Diff line change 1212fi 
1313
1414exit_watcher () { 
15-   #  we need to  kill the parent process (rewatch) 
15+   #  kill watcher by removing lock file 
1616  rm lib/rewatch.lock
1717}
1818
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments