Apply the error action globally

This commit is contained in:
Manuel Thalmann 2024-08-08 14:08:38 +02:00
parent 324e8bee7e
commit bbcaca2c84

View file

@ -3,7 +3,7 @@ function Start-Operation {
[scriptblock] $Action [scriptblock] $Action
) )
$ErrorActionPreference = 'Inquire'; $Global:ErrorActionPreference = 'Inquire';
$env:WSLENV = "CONFIG_MODULE/p"; $env:WSLENV = "CONFIG_MODULE/p";
if ($env:CONFIG_MODULE) { if ($env:CONFIG_MODULE) {