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 6de1e2c1b3 Fix the error of using shell task to obtain Home variable 
in Ubuntu system. (#14964)
6de1e2c1b3 is described below

commit 6de1e2c1b39da7031d790efa6f44d1aef4faa14c
Author: Kerwin <[email protected]>
AuthorDate: Tue Sep 26 17:18:38 2023 +0800

    Fix the error of using shell task to obtain Home variable in Ubuntu system. 
(#14964)
---
 .../plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.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/shell/BaseLinuxShellInterceptorBuilder.java
 
b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java
index 83aa8230d8..5816681e75 100644
--- 
a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java
+++ 
b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java
@@ -129,7 +129,7 @@ public abstract class BaseLinuxShellInterceptorBuilder<T 
extends BaseLinuxShellI
             bootstrapCommand.add("-u");
             bootstrapCommand.add(runUser);
         }
-        bootstrapCommand.add("-E");
+        bootstrapCommand.add("-i");
         bootstrapCommand.add(shellAbsolutePath().toString());
         return bootstrapCommand;
     }

Reply via email to