Handle OneShot tasks only on Windows

This commit is contained in:
Manuel Thalmann 2024-08-27 21:32:49 +02:00
parent aa278cd675
commit 9b0bf565f6

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