Handle OneShot tasks only on Windows

This commit is contained in:
Manuel Thalmann 2024-08-27 21:32:49 +02:00
parent 0e2a70903f
commit 7c84dfdedd

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