[fix] Change the default unix shell executor from sh to bash (#12180)
Co-authored-by: Kerwin <37063904+zhuangchong@users.noreply.github.com>
This commit is contained in:
parent
3bef85f546
commit
ba538067f2
|
|
@ -5,8 +5,9 @@ This document records the incompatible updates between each version. You need to
|
|||
## dev
|
||||
|
||||
* Remove the spark version of spark task ([#11860](https://github.com/apache/dolphinscheduler/pull/11860)).
|
||||
* Change the default unix shell executor from sh to bash ([#12180](https://github.com/apache/dolphinscheduler/pull/12180)).
|
||||
|
||||
## 3.0.0
|
||||
|
||||
* Copy and import workflow without 'copy' suffix [#10607](https://github.com/apache/dolphinscheduler/pull/10607)
|
||||
* Use semicolon as default sql segment separator [#10869](https://github.com/apache/dolphinscheduler/pull/10869)
|
||||
* Use semicolon as default sql segment separator [#10869](https://github.com/apache/dolphinscheduler/pull/10869)
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@
|
|||
## dev
|
||||
|
||||
* Remove the spark version of spark task ([#11860](https://github.com/apache/dolphinscheduler/pull/11860)).
|
||||
* Change the default unix shell executor from sh to bash ([#12180](https://github.com/apache/dolphinscheduler/pull/12180)).
|
||||
|
||||
## 3.0.0
|
||||
|
||||
* Copy and import workflow without 'copy' suffix [#10607](https://github.com/apache/dolphinscheduler/pull/10607)
|
||||
* Use semicolon as default sql segment separator [#10869](https://github.com/apache/dolphinscheduler/pull/10869)
|
||||
* Use semicolon as default sql segment separator [#10869](https://github.com/apache/dolphinscheduler/pull/10869)
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ public abstract class AbstractCommandExecutor {
|
|||
command.add("sudo");
|
||||
command.add("-u");
|
||||
command.add(taskRequest.getTenantCode());
|
||||
command.add("-E");
|
||||
}
|
||||
}
|
||||
command.add(commandInterpreter());
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ import com.google.common.base.Strings;
|
|||
public class ShellCommandExecutor extends AbstractCommandExecutor {
|
||||
|
||||
/**
|
||||
* For Unix-like, using sh
|
||||
* For Unix-like, using bash
|
||||
*/
|
||||
private static final String SH = "sh";
|
||||
private static final String SH = "bash";
|
||||
|
||||
/**
|
||||
* For Windows, using cmd.exe
|
||||
|
|
|
|||
Loading…
Reference in New Issue