diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index 5f9b6525..929a640d 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -10,5 +10,6 @@ function Start-Operation { $env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE; } + New-Alias "sudo" gsudo; & $Action; } diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 20cabdf3..5b68e14a 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -48,6 +48,12 @@ $null = New-Module { continue; } + if (-not (Test-Command "gsudo")) { + Install-ChocoPackage gsudo; + refreshenv; + continue; + } + if (-not (Test-Command "git")) { Install-ChocoPackage git; refreshenv;