From 1bf5c7084f6d7998dde6b8e442a4cbf8b3a2727f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 29 Mar 2021 06:14:21 +0000 Subject: [PATCH] webi-pwsh: remove old file location to fix existing installations --- _webi/webi-pwsh.ps1 | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.25.1