Fix the error of using shell task to obtain Home variable in Ubuntu system. (#14964)

This commit is contained in:
Kerwin 2023-09-26 17:18:38 +08:00 committed by GitHub
parent 020092ed1e
commit 6de1e2c1b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}