Apply the error action globally
This commit is contained in:
parent
324e8bee7e
commit
bbcaca2c84
|
@ -3,7 +3,7 @@ function Start-Operation {
|
|||
[scriptblock] $Action
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Inquire';
|
||||
$Global:ErrorActionPreference = 'Inquire';
|
||||
$env:WSLENV = "CONFIG_MODULE/p";
|
||||
|
||||
if ($env:CONFIG_MODULE) {
|
||||
|
|
Loading…
Reference in a new issue