cherry-pick [fix-10938]: use dot to replace source and make the default env work in shell (#11937)
This commit is contained in:
parent
275b68992c
commit
350a3632d3
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue