Keep Windows fixes separate
This commit is contained in:
parent
7eb0c61cf6
commit
06d9de5b30
1 changed files with 12 additions and 9 deletions
|
@ -39,18 +39,21 @@ $null = New-Module {
|
|||
|
||||
$Global:InOperation = $true;
|
||||
$Global:ErrorActionPreference = $NonInteractive.IsPresent ? 'Continue' : 'Inquire';
|
||||
$env:WSLENV = "CONFIG_MODULE/p";
|
||||
|
||||
if ($env:CONFIG_MODULE) {
|
||||
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
|
||||
if ($IsWindows) {
|
||||
$env:WSLENV = "CONFIG_MODULE/p";
|
||||
|
||||
if ($env:CONFIG_MODULE) {
|
||||
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
|
||||
}
|
||||
|
||||
if (Test-Admin) {
|
||||
Disable-WindowsUpdateAutoRestart;
|
||||
}
|
||||
|
||||
New-Alias -Force "sudo" gsudo;
|
||||
}
|
||||
|
||||
if (Test-Admin) {
|
||||
Disable-WindowsUpdateAutoRestart;
|
||||
}
|
||||
|
||||
New-Alias -Force "sudo" gsudo;
|
||||
|
||||
if (-not $NoImplicitCleanup.IsPresent) {
|
||||
$cleanup = {
|
||||
Clear-OperationResources;
|
||||
|
|
Loading…
Reference in a new issue