win: bugfix Env:WEBI_HOST in webi.ps1

This commit is contained in:
AJ ONeal
2020-06-28 12:48:29 +00:00
parent 807c716c92
commit 4e92e3b69a
2 changed files with 10 additions and 0 deletions

View File

@@ -31,6 +31,9 @@ if (!(Test-Path -Path .local\opt))
# {{ baseurl }}
# {{ version }}
# Run pathman to set up the folder
& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\.bin"
{{ installer }}
# Done

View File

@@ -26,6 +26,13 @@ if (!(Test-Path -Path .local\tmp))
New-Item -Path .local\tmp -ItemType Directory
}
# TODO SetStrictMode
# TODO Test-Path variable:global:Env:WEBI_HOST ???
IF(!$Env:WEBI_HOST)
{
$Env:WEBI_HOST = "https://webinstall.dev"
}
if (!(Test-Path -Path .local\bin\pathman.exe))
{
& curl.exe -fsSL -A "$Env:WEBI_UA" "$Env:WEBI_HOST/packages/pathman/install.ps1" -o .\.local\tmp\pathman-setup.ps1