mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 01:40:17 +00:00
win: bugfix Env:WEBI_HOST in webi.ps1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user