Handle OneShot tasks only on Windows
This commit is contained in:
parent
3614be475e
commit
d4360a4a15
|
@ -37,6 +37,11 @@ $null = New-Module {
|
|||
$cleanup = { };
|
||||
$taskPending = $false;
|
||||
|
||||
if ($IsWindows -and ($null -ne (Get-OneShotTask))) {
|
||||
$taskPending = $true;
|
||||
[switch] $NonInteractive = $true;
|
||||
}
|
||||
|
||||
if (-not $Global:InOperation) {
|
||||
if ($env:DEBUG) {
|
||||
Set-PSDebug -Trace 1;
|
||||
|
|
Loading…
Reference in a new issue