Skip to content

Commit

Permalink
jsc/wasm32/wasm32.jsc: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Feb 11, 2021
1 parent 295e314 commit 91c25a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsc/wasm32/wasm32.jsc
Original file line number Diff line number Diff line change
Expand Up @@ -5389,7 +5389,8 @@ if (typeof(os) !== "undefined" &&
let command = args.join(" ");
let timestamp = Date.now();
if (this.pwd !== undefined)
command = "(cd " + this.pwd + "; PWD=. " + command + ")>/tmp/tmp.out." + timestamp;
command = "(cd " + this.pwd + "; PWD=. " + command + ")";
command += ">/tmp/tmp.out." + timestamp;
command = command.replace(/\bsh -c /, "");
try {
let pid = os.spawn(command);
Expand Down

0 comments on commit 91c25a5

Please sign in to comment.