mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
ref(webi): run cmd.exe with %USERPROFILE% path rather than pushd / popd
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ Push-Location $Env:USERPROFILE
|
||||
New-Item -Path .local\bin -ItemType Directory -Force | Out-Null
|
||||
|
||||
# See note on Set-ExecutionPolicy above
|
||||
Set-Content -Path .local\bin\webi.bat -Value "@echo off`r`npushd %USERPROFILE%`r`npowershell -ExecutionPolicy Bypass .local\bin\webi-pwsh.ps1 %1`r`npopd"
|
||||
Set-Content -Path .local\bin\webi.bat -Value "@echo off`r`npowershell -ExecutionPolicy Bypass %USERPROFILE%\.local\bin\webi-pwsh.ps1 %*"
|
||||
# Backwards-compat bugfix: remove old webi-pwsh.ps1 location
|
||||
Remove-Item -Path .local\bin\webi.ps1 -Recurse -ErrorAction Ignore
|
||||
if (!(Test-Path -Path .local\opt)) {
|
||||
|
||||
Reference in New Issue
Block a user