Enable logging before doing anything

This commit is contained in:
Manuel Thalmann 2023-07-19 09:54:45 +02:00
parent c98f3c2372
commit d8a3e3d2c1

View file

@ -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";