Skip to content

Commit

Permalink
Apply fix suggested by @billy-bao.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Jul 1, 2022
1 parent 3a1f550 commit 68fb62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org.lflang/src/org/lflang/util/LFCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public static LFCommand get(final String cmd, final List<String> args, boolean q
} else if (findCommand(cmd) != null) {
builder = new ProcessBuilder(cmdList);
} else if (checkIfCommandIsExecutableWithBash(cmd, dir)) {
builder = new ProcessBuilder("bash", "--login", "-c", String.join(" ", cmdList));
builder = new ProcessBuilder("bash", "--login", "-c", String.format("\"%s\"", String.join(" ", cmdList)));
}

if (builder != null) {
Expand Down

0 comments on commit 68fb62e

Please sign in to comment.