Skip to content

Commit

Permalink
fix the bash can't run with --libdirs $CHEZSCHEMELIBDIRS on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
atship committed Nov 17, 2017
1 parent 1679c15 commit 79f8b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemely/actions/SchemeRun.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected ProcessHandler startProcess() throws ExecutionException {
String workingDir = project.getBasePath() + "/" + module.getName() + "/src/";
url = url.replace(workingDir, "");

GeneralCommandLine generalCommandLine = new GeneralCommandLine("bash", "-c", "scheme --script " + url);
GeneralCommandLine generalCommandLine = new GeneralCommandLine("bash", "-c", "source ~/.bashrc; scheme --libdirs \\$CHEZSCHEMELIBDIRS --script " + url);
generalCommandLine.setCharset(Charset.forName("UTF-8"));
generalCommandLine.setWorkDirectory(workingDir);
return new ColoredProcessHandler(generalCommandLine);
Expand Down

0 comments on commit 79f8b59

Please sign in to comment.