ref!(webi): use $HOME instead of switching and relying on the current directory

This commit is contained in:
AJ ONeal
2023-11-11 10:42:56 -07:00
parent 0c99e0272e
commit 676bcaf125

View File

@@ -125,9 +125,6 @@ function Show-HowToUpdateEnv {
Write-Host ""
}
# Switch to userprofile
Push-Location $Env:USERPROFILE
# Make paths if needed
# TODO replace all bin with opt\bin\
New-Item -Path "$HOME\.local\bin\" -ItemType Directory -Force | Out-Null
@@ -215,5 +212,3 @@ IF ($IsWebiParent) {
Show-HowToUpdateEnv
}
}
Pop-Location