From 10a64e342484f56db184a31bb74e6df5b05fbf8c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 27 Aug 2024 21:32:49 +0200 Subject: [PATCH] Handle OneShot tasks only on Windows --- scripts/Common/Scripts/Operations.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index bae92810..cc31346f 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -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; }