mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
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");
|
||||
command.arg("/C").arg(cmd);
|
||||
|
||||
if updated_paths.len() > 0 {
|
||||
if !updated_paths.is_empty() {
|
||||
command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]);
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ impl Runner {
|
||||
let mut command = Command::new("sh");
|
||||
command.arg("-c").arg(cmd);
|
||||
|
||||
if updated_paths.is_empty() {
|
||||
if !updated_paths.is_empty() {
|
||||
command.env("WATCHEXEC_UPDATED_PATH", updated_paths[0]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user