Skip to content

Commit

Permalink
Propagate environment variables to the downstream process
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Jun 28, 2024
1 parent 8f18b2f commit 7a7c0b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/runner/src/main/java/org/enso/runner/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,7 @@ private void launch(String[] args) throws IOException, InterruptedException, URI
var pb = new ProcessBuilder();
pb.inheritIO();
pb.command(commandAndArgs);
pb.environment().putAll(System.getenv());
var p = pb.start();
var exitCode = p.waitFor();
if (exitCode == 0) {
Expand Down

0 comments on commit 7a7c0b5

Please sign in to comment.