Skip to content

Commit

Permalink
engine: shell commands are run using bash instead of sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pveber committed Mar 1, 2020
1 parent 6835b3b commit bebc5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/engine/shell_command.ml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ let run (Command cmd) =
(fun oc -> write oc cmd.text)) >>= fun () ->
Misc.redirection cmd.env.stdout >>= fun stdout ->
Misc.redirection cmd.env.stderr >>= fun stderr ->
Lwt_process.exec ~stdout ~stderr ("", [| "sh" ; script_file |])
Lwt_process.exec ~stdout ~stderr ("", [| "bash" ; script_file |])
>>= fun status ->
Lwt_unix.unlink script_file >>= fun () ->
let exit_code = Caml.Unix.(
Expand Down

0 comments on commit bebc5ce

Please sign in to comment.