Fix silly error
This commit is contained in:
parent
7d8f909220
commit
1582240dbc
|
@ -48,7 +48,7 @@ impl Runner {
|
||||||
let mut command = Command::new("cmd.exe");
|
let mut command = Command::new("cmd.exe");
|
||||||
command.arg("/C").arg(cmd);
|
command.arg("/C").arg(cmd);
|
||||||
|
|
||||||
if updated_paths.len() > 0 {
|
if !updated_paths.is_empty() {
|
||||||
command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]);
|
command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ impl Runner {
|
||||||
let mut command = Command::new("sh");
|
let mut command = Command::new("sh");
|
||||||
command.arg("-c").arg(cmd);
|
command.arg("-c").arg(cmd);
|
||||||
|
|
||||||
if updated_paths.is_empty() {
|
if !updated_paths.is_empty() {
|
||||||
command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]);
|
command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue