fix(powershell): don't use sudo with Update-Module for pwsh
Co-authored-by: Ao <197966644+ao-xing@users.noreply.github.com> Co-authored-by: nistee <52573120+niStee@users.noreply.github.com>
This commit is contained in:
@@ -465,7 +465,7 @@ impl Step {
|
||||
Poetry => runner.execute(*self, "Poetry", || generic::run_poetry(ctx))?,
|
||||
Powershell => {
|
||||
let powershell = powershell::Powershell::new();
|
||||
if powershell.profile().is_some() {
|
||||
if powershell.is_available() {
|
||||
runner.execute(Powershell, "Powershell Modules Update", || {
|
||||
powershell.update_modules(ctx)
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user