From 267ebd5c5bcd72e37b0dd0f6e99f1af5f7196006 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 27 Aug 2024 03:50:08 +0200 Subject: [PATCH] Execute script non-interactive during OneShot tasks --- 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 32f124fe..ad264429 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -25,7 +25,7 @@ $null = New-Module { function Start-Operation { param( - [switch] $NonInteractive, + [switch] $NonInteractive = ((Get-Stage) -eq ([SetupStage]::OneShot)), [switch] $NoImplicitCleanup, [scriptblock] $Action )