Browse Source

Modify shell env to bash (#12742)

3.2.0-release
Kerwin 2 years ago committed by GitHub
parent
commit
c4fb555883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/ShellCommandExecutor.java

2
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/ShellCommandExecutor.java

@ -101,7 +101,7 @@ public class ShellCommandExecutor extends AbstractCommandExecutor {
}
}
} else {
sb.append("#!/bin/sh\n");
sb.append("#!/bin/bash\n");
sb.append("BASEDIR=$(cd `dirname $0`; pwd)\n");
sb.append("cd $BASEDIR\n");
if (StringUtils.isNotBlank(taskRequest.getEnvironmentConfig())) {

Loading…
Cancel
Save