Fix non-functioning installation of choco profile

This commit is contained in:
Manuel Thalmann 2023-07-19 14:31:17 +02:00
parent d8a3e3d2c1
commit b65f144d45
2 changed files with 4 additions and 8 deletions

View file

@ -1,4 +1,6 @@
#!/bin/pwsh
. "$PSScriptRoot/profile.ps1";
powershell "$PSScriptRoot/profile.ps1";
powershell -c 'New-Item -Force $PROFILE';
choco install --force chocolatey;
Copy-Item -Force (powershell -c '$PROFILE') $PROFILE;
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1";

View file

@ -1,6 +0,0 @@
#!/bin/pwsh
if (-not (Test-Path -PathType Leaf $PROFILE)) {
New-Item -Force $PROFILE;
}
choco install -y --force chocolatey;