Modify shell env to bash (#12742)

This commit is contained in:
Kerwin 2022-11-07 11:21:11 +08:00 committed by GitHub
parent 6d79414491
commit c4fb555883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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())) {