Handle OneShot tasks only on Windows

This commit is contained in:
Manuel Thalmann 2024-08-27 21:32:49 +02:00
parent 96d1ff7e65
commit 96465029b3

View file

@ -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;
} }