Browse Source

Modify shell env to bash (#12742)

3.1.1-release
Kerwin 2 years ago committed by zhuangchong
parent
commit
b446b260f4
  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

@ -103,7 +103,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