Add support for the sudo
command
This commit is contained in:
parent
a0ddf0c8aa
commit
2f63463912
|
@ -10,5 +10,6 @@ function Start-Operation {
|
|||
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
|
||||
}
|
||||
|
||||
New-Alias "sudo" gsudo;
|
||||
& $Action;
|
||||
}
|
||||
|
|
|
@ -47,6 +47,12 @@ $null = New-Module {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (-not (Test-Command "gsudo")) {
|
||||
Install-ChocoPackage gsudo;
|
||||
refreshenv;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (-not (Test-Command "git")) {
|
||||
Install-ChocoPackage git;
|
||||
refreshenv;
|
||||
|
|
Loading…
Reference in a new issue