You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2022/09/15 07:05:45 UTC

[dolphinscheduler] branch 3.0.1-prepare updated: cherry-pick [fix-10938]: use dot to replace source and make the default env work in shell (#11937)

This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch 3.0.1-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/3.0.1-prepare by this push:
     new 350a3632d3 cherry-pick [fix-10938]: use dot to replace source and make the default env work in shell (#11937)
350a3632d3 is described below

commit 350a3632d378d2bad03476c06da5324e91ef3768
Author: Kerwin <37...@users.noreply.github.com>
AuthorDate: Thu Sep 15 15:05:39 2022 +0800

    cherry-pick [fix-10938]: use dot to replace source and make the default env work in shell (#11937)
---
 .../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 37a3e963b7..09eeb53f3a 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 (StringUtils.isNotBlank(taskRequest.getEnvironmentConfig())) {