Fix compile error on Windows

This commit is contained in:
Matt Green 2016-10-20 11:50:25 -04:00
parent 8a6a540bb6
commit b16cbec3ee
2 changed files with 2 additions and 2 deletions

2
Cargo.lock generated
View File

@ -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)",

View File

@ -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]);
}