Enable logging before doing anything

This commit is contained in:
Manuel Thalmann 2023-07-19 09:54:45 +02:00
parent c86a1cf87d
commit 19966910bb

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