mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
Initial command run is outside the loop!
This commit is contained in:
parent
6887552aab
commit
7eabee9f40
@ -155,10 +155,11 @@ fn main() {
|
||||
let cmd = cmd_parts.join(" ");
|
||||
let mut runner = Runner::new(args.is_present("restart"), args.is_present("clear"));
|
||||
|
||||
loop {
|
||||
if args.is_present("run-initially") {
|
||||
runner.run_command(&cmd);
|
||||
}
|
||||
|
||||
loop {
|
||||
let e = wait(&rx, &filter).expect("error when waiting for filesystem changes");
|
||||
|
||||
debug!("{:?}: {:?}", e.op, e.path);
|
||||
|
Loading…
Reference in New Issue
Block a user