Pause scripts on errors

This commit is contained in:
Manuel Thalmann 2024-03-23 17:32:45 +01:00
parent ba5c46a884
commit 19900bac81
4 changed files with 6 additions and 3 deletions
scripts/Windows/Scripts

View file

@ -1,7 +1,5 @@
#!/bin/pwsh
. "$PSScriptRoot/Context.ps1";
$Global:InformationPreference = "Continue";
$Global:ErrorActionPreference = "Inquire";
[Context]::new().PreventSleepMode();
$null = powershell -c Get-PackageProvider -ListAvailable NuGet;