mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
switch Windows to to Env:USERPROFILE
This commit is contained in:
+2
-2
@@ -34,8 +34,8 @@ if (!(Test-Path -Path .local\opt))
|
||||
# {{ version }}
|
||||
|
||||
# Run pathman to set up the folder
|
||||
#& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\bin"
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\bin
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\bin"
|
||||
#& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\bin
|
||||
|
||||
{{ installer }}
|
||||
|
||||
|
||||
+2
-2
@@ -48,8 +48,8 @@ if (!(Test-Path -Path .local\bin\pathman.exe))
|
||||
}
|
||||
|
||||
# Run pathman to set up the folder
|
||||
#& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\bin"
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\bin
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\bin"
|
||||
#& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\bin
|
||||
|
||||
# {{ baseurl }}
|
||||
# {{ version }}
|
||||
|
||||
+2
-1
@@ -53,4 +53,5 @@ Remove-Item -Path "$pkg_dst" -Recurse -ErrorAction Ignore
|
||||
Copy-Item -Path "$pkg_src" -Destination "$pkg_dst" -Recurse
|
||||
|
||||
# Add to path
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\opt\git\cmd
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\opt\git\cmd"
|
||||
#& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\opt\git\cmd
|
||||
|
||||
+4
-2
@@ -69,7 +69,9 @@ echo stringer
|
||||
& "$pkg_dst_cmd" get golang.org/x/tools/cmd/stringer
|
||||
|
||||
# Add to path
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\opt\go\bin
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\opt\go\bin"
|
||||
#& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\opt\go\bin
|
||||
|
||||
# Special to go: add default GOBIN to PATH
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\go\bin
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\go\bin"
|
||||
#& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\go\bin
|
||||
|
||||
Reference in New Issue
Block a user