Skip to content

Commit

Permalink
fix: add set -x only with bash (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Dec 13, 2023
1 parent f77ac3e commit 15f170a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ fn run_in_environment(

writeln!(tmpfile, "{}", additional_script.contents)?;
writeln!(tmpfile, "{}", script.script)?;
writeln!(tmpfile, "set -x")?;
if matches!(shell, ShellEnum::Bash(_)) {
writeln!(tmpfile, "set -x")?;
}
writeln!(tmpfile, "{}", cmd)?;

let tmpfile_path = tmpfile.into_temp_path();
Expand Down

0 comments on commit 15f170a

Please sign in to comment.