Skip to content

Commit

Permalink
Merge pull request #1265 from lf-lang/fix-execute-command
Browse files Browse the repository at this point in the history
Repair ability to execute commands with Bash in case command is not found on path
  • Loading branch information
lhstrh authored Jul 1, 2022
2 parents 2a8ef20 + 68fb62e commit 8e5fb5b
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 8e5fb5b

Please sign in to comment.