switch Windows to to Env:USERPROFILE
authorAJ ONeal <aj@therootcompany.com>
Sat, 4 Jul 2020 07:19:14 +0000 (07:19 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sat, 4 Jul 2020 07:19:14 +0000 (07:19 +0000)
_webi/template.ps1
_webi/webi.ps1
git/install.ps1
golang/install.ps1

index 491e3a544c17bf69fbbaf86b791c8b9c21dffcdf..4ca9fe1e18259a5cf62420790d6dc2572f476900 100644 (file)
@@ -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 }}
 
index d18996cc4245aaaf5ac053033c31923c062ec383..ac4886fd2d7648bf795449a157c2ce1b3b78adfb 100644 (file)
@@ -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 }}
index d6d1e22df177d19e8acab7775a03a801389db87f..bf53e2108b9612d49bda383d8b92f1235f25f4bf 100644 (file)
@@ -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
index f2ded216bd3d43facc2773dcb1e2fbb6c4b7a4d7..271960a84508be0991c7f22cd4b2d5332f3dfd7c 100644 (file)
@@ -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