Handle OneShot tasks only on Windows
This commit is contained in:
parent
8dbd6424eb
commit
6182ff2c8f
|
@ -42,7 +42,7 @@ $null = New-Module {
|
||||||
Set-PSDebug -Trace 1;
|
Set-PSDebug -Trace 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($null -ne (Get-OneShotTask)) {
|
if ($IsWindows -and ($null -ne (Get-OneShotTask))) {
|
||||||
$taskPending = $true;
|
$taskPending = $true;
|
||||||
[switch] $NonInteractive = $true;
|
[switch] $NonInteractive = $true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue