From b446b260f48d3a4da3ca7eb115525748b28843c7 Mon Sep 17 00:00:00 2001 From: Kerwin <37063904+zhuangchong@users.noreply.github.com> Date: Mon, 7 Nov 2022 11:21:11 +0800 Subject: [PATCH] Modify shell env to bash (#12742) --- .../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 d7e47a3f49..61d238f67b 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 @@ -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())) {