Skip to content

Commit 3025ea3

Browse files
author
Rehan Rana
committed
Fixed issue with multiple programs not working
1 parent d44e04e commit 3025ea3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ fn commands_vec_loader(
189189
progs: Arc<Option<Vec<String>>>,
190190
commands_vec: &mut Vec<Command>,
191191
) {
192-
let mut wall_sent = false;
193192
if let Some(prog_vec) = progs.as_deref() {
194193
for prog_str in prog_vec.iter() {
194+
let mut wall_sent = false;
195195
let mut prog_split = prog_str.split_whitespace();
196196
let mut curr_command = Command::new(prog_split.next().unwrap());
197197
for word in prog_split {
@@ -206,7 +206,6 @@ fn commands_vec_loader(
206206
//if the filepath has been placed previously, this ensures that we dont place it again at the end
207207
if wall_sent == false {
208208
curr_command.arg(filepath_set);
209-
wall_sent = true;
210209
}
211210
commands_vec.push(curr_command);
212211
}

0 commit comments

Comments
 (0)