diff --git a/Cargo.lock b/Cargo.lock index 7afff55..6e0cef4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "watchexec" -version = "1.1.1" +version = "1.2.0" dependencies = [ "clap 2.14.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/src/runner.rs b/src/runner.rs index 489c2f9..6907a77 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -47,7 +47,7 @@ impl Runner { let mut command = Command::new("cmd.exe"); command.arg("/C").arg(cmd); - if updated_files.len() > 0 { + if updated_paths.len() > 0 { command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]); }