From 2943621d6cc47a35de3595408c380778ba3d8b8b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 8 Aug 2024 14:08:38 +0200 Subject: [PATCH] Apply the error action globally --- 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 3f74274b..5f9b6525 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -3,7 +3,7 @@ function Start-Operation { [scriptblock] $Action ) - $ErrorActionPreference = 'Inquire'; + $Global:ErrorActionPreference = 'Inquire'; $env:WSLENV = "CONFIG_MODULE/p"; if ($env:CONFIG_MODULE) {