Fix non-functioning installation of choco profile
This commit is contained in:
parent
d8a3e3d2c1
commit
b65f144d45
2 changed files with 4 additions and 8 deletions
|
@ -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";
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/pwsh
|
||||
if (-not (Test-Path -PathType Leaf $PROFILE)) {
|
||||
New-Item -Force $PROFILE;
|
||||
}
|
||||
|
||||
choco install -y --force chocolatey;
|
Loading…
Reference in a new issue