projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9f17e5
)
install git if not present
author
AJ ONeal
<aj@therootcompany.com>
Sat, 4 Jul 2020 07:32:23 +0000
(07:32 +0000)
committer
AJ ONeal
<aj@therootcompany.com>
Sat, 4 Jul 2020 07:32:23 +0000
(07:32 +0000)
golang/install.ps1
patch
|
blob
|
history
diff --git
a/golang/install.ps1
b/golang/install.ps1
index 271960a84508be0991c7f22cd4b2d5332f3dfd7c..5649e07251d53e3f79423706db8d89ccb20a6bc0 100644
(file)
--- a/
golang/install.ps1
+++ b/
golang/install.ps1
@@
-9,6
+9,11
@@
$pkg_dst = "$Env:USERPROFILE\.local\opt\$pkg_cmd_name"
$pkg_dst_cmd = "$pkg_dst\bin\$pkg_cmd_name"
$pkg_dst_bin = "$pkg_dst\bin"
+if (!(Get-Command "git.exe" -ErrorAction SilentlyContinue))
+{
+ & powershell -ExecutionPolicy Bypass "$Env:USERPROFILE\.local\bin\webi.ps1" git
+}
+
# Fetch archive
IF (!(Test-Path -Path "$pkg_download"))
{