Handle OneShot tasks only on Windows

This commit is contained in:
Manuel Thalmann 2024-08-27 21:32:49 +02:00
parent 972fd5fd43
commit 0259a55c79

View file

@ -42,7 +42,7 @@ $null = New-Module {
Set-PSDebug -Trace 1;
}
if ($null -ne (Get-OneShotTask)) {
if ($IsWindows -and ($null -ne (Get-OneShotTask))) {
$taskPending = $true;
[switch] $NonInteractive = $true;
}