Replaced all instances of webi.ps1 with webi-pwsh.ps1

This commit is contained in:
James Bohan
2021-03-29 05:03:10 +00:00
committed by AJ ONeal
parent 9867946c6b
commit 7a5d0527cb
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# Download the latest webi, then install {{ exename }}
New-Item -Path .local\bin -ItemType Directory -Force
IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi.ps1" -o "$Env:USERPROFILE\.local\bin\webi.ps1"
curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi-pwsh.ps1" -o "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1"
Set-ExecutionPolicy -Scope Process Bypass
& "$Env:USERPROFILE\.local\bin\webi.ps1" "{{ exename }}"
& "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" "{{ exename }}"
+1 -1
View File
@@ -30,7 +30,7 @@ New-Item -Path .local\bin -ItemType Directory -Force
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.ps1 %1`r`npopd"
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"
if (!(Test-Path -Path .local\opt))
{
New-Item -Path .local\opt -ItemType Directory -Force
+1 -1
View File
@@ -1 +1 @@
powershell -ExecutionPolicy Bypass .\.local\bin\webi.ps1 %1
powershell -ExecutionPolicy Bypass .\.local\bin\webi-pwsh.ps1 %1
+1 -1
View File
@@ -11,7 +11,7 @@ $pkg_dst_bin = "$pkg_dst\bin"
if (!(Get-Command "git.exe" -ErrorAction SilentlyContinue))
{
& "$Env:USERPROFILE\.local\bin\webi.ps1" git
& "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" git
# because we need git.exe to be available to golang immediately
$Env:PATH = "$Env:USERPROFILE\.local\opt\git\cmd;$Env:PATH"
}
+1 -1
View File
@@ -63,7 +63,7 @@ These are the files that are installed when you use [webinstall.dev](/):
# Windows 10
~/.local/bin/webi.cmd
~/.local/bin/webi.ps1
~/.local/bin/webi-pwsh.ps1
~/.local/bin/pathman.exe
~/.local/opt/pathman-*
```