Skip to content

Commit 511149f

Browse files
[fix-10938]: use dot to replace source and make the default env work in shell (#11625)
* [fix-10938]: use the dot to replace source and make the default env work in the sh Co-authored-by: Kerwin <37063904+zhuangchong@users.noreply.github.com>
1 parent 9813ded commit 511149f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected void createCommandFileIfNotExists(String execCommand, String commandFi
101101
}
102102
}
103103
} else {
104-
sb.append("#!/bin/sh\n");
104+
sb.append("#!/bin/bash\n");
105105
sb.append("BASEDIR=$(cd `dirname $0`; pwd)\n");
106106
sb.append("cd $BASEDIR\n");
107107
if (!Strings.isNullOrEmpty(taskRequest.getEnvironmentConfig())) {

0 commit comments

Comments
 (0)