This is an automated email from the ASF dual-hosted git repository.
kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 511149f644 [fix-10938]: use dot to replace source and make the default
env work in shell (#11625)
511149f644 is described below
commit 511149f644224d34ef899321efc114104ef61763
Author: itzhang89 <[email protected]>
AuthorDate: Thu Sep 15 15:05:09 2022 +0800
[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 <[email protected]>
---
.../apache/dolphinscheduler/plugin/task/api/ShellCommandExecutor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/ShellCommandExecutor.java
b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/ShellCommandExecutor.java
index cd2f0b630e..419b943479 100644
---
a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/ShellCommandExecutor.java
+++
b/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
(!Strings.isNullOrEmpty(taskRequest.getEnvironmentConfig())) {