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