aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-07-11 18:41:06 +0100
committerdiogo464 <[email protected]>2025-07-11 18:41:06 +0100
commit42f191959b481de22ed014247b9cceb5769a51af (patch)
tree987c3f679420566edf011871b39d3929b27c828b
parent907a6e857d13242adf85c68391987c0d2eafca3c (diff)
fix: correct shell redirection syntax from 2>1 to 2>&1
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index fb4ab66..06cf322 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -414,7 +414,7 @@ fn machine_containers_wait_script(containers: &[ScheduledContainer]) -> String {
414 "if [ \"$(docker wait {name})\" -ne \"0\" ] ; then\n" 414 "if [ \"$(docker wait {name})\" -ne \"0\" ] ; then\n"
415 )); 415 ));
416 script.push_str(&format!("\techo Container {name} failed\n")); 416 script.push_str(&format!("\techo Container {name} failed\n"));
417 script.push_str(&format!("\tdocker logs {name} 2>1\n")); 417 script.push_str(&format!("\tdocker logs {name} 2>&1\n"));
418 script.push_str("\texit 1\n"); 418 script.push_str("\texit 1\n");
419 script.push_str("fi\n\n"); 419 script.push_str("fi\n\n");
420 } 420 }