Skip to content

Commit

Permalink
use interpreter workaround only on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Mar 4, 2024
1 parent fc57ea2 commit 33bff55
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private String createCommandMessage(String interpreter, String suffix) {
sb.append(this.executable);
sb.append("'");
if (interpreter != null) {
sb.append("using ");
sb.append(" using ");
sb.append(interpreter);
}
int size = this.arguments.size();
Expand Down Expand Up @@ -279,6 +279,10 @@ private String findBashOnWindows() {

private String addExecutable(String executable, List<String> args) {

if (!SystemInfoImpl.INSTANCE.isWindows()) {
args.add(executable);
return null;
}
String interpreter = null;
String fileExtension = FilenameUtil.getExtension(executable);
boolean isBashScript = "sh".equals(fileExtension);
Expand Down

0 comments on commit 33bff55

Please sign in to comment.