From: AJ ONeal Date: Mon, 29 Mar 2021 06:14:21 +0000 (+0000) Subject: webi-pwsh: remove old file location to fix existing installations X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=1bf5c7084f6d7998dde6b8e442a4cbf8b3a2727f;p=webi-installers%2F.git webi-pwsh: remove old file location to fix existing installations --- diff --git a/_webi/webi-pwsh.ps1 b/_webi/webi-pwsh.ps1 index 73f3098..8fca7f2 100644 --- a/_webi/webi-pwsh.ps1 +++ b/_webi/webi-pwsh.ps1 @@ -31,6 +31,8 @@ New-Item -Path .local\xbin -ItemType Directory -Force # 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" +# 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)) { New-Item -Path .local\opt -ItemType Directory -Force