From d8a3e3d2c17e8029947b97354d41718bf50ae796 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 19 Jul 2023 09:54:45 +0200 Subject: [PATCH] Enable logging before doing anything --- scripts/Windows/Scripts/Prerequisites.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Windows/Scripts/Prerequisites.ps1 b/scripts/Windows/Scripts/Prerequisites.ps1 index d84c84ae..47f5c518 100644 --- a/scripts/Windows/Scripts/Prerequisites.ps1 +++ b/scripts/Windows/Scripts/Prerequisites.ps1 @@ -1,4 +1,7 @@ #!/bin/pwsh +$Global:InformationPreference = "Continue"; +$Global:ErrorActionPreference = "Inquire"; + $null = powershell -c Get-PackageProvider -ListAvailable NuGet; if (-not $?) { @@ -21,6 +24,3 @@ foreach ($nativeModule in @("PinnedItem")) { powershell -c Install-Module -Force "$nativeModule"; } } - -$Global:InformationPreference = "Continue"; -$Global:ErrorActionPreference = "Inquire";