From b16cbec3eeed647115910b4b3b6c4eacbe680e16 Mon Sep 17 00:00:00 2001 From: Matt Green Date: Thu, 20 Oct 2016 11:50:25 -0400 Subject: [PATCH] Fix compile error on Windows --- Cargo.lock | 2 +- src/runner.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]); }