install git if not present
authorAJ ONeal <aj@therootcompany.com>
Sat, 4 Jul 2020 07:32:23 +0000 (07:32 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sat, 4 Jul 2020 07:32:23 +0000 (07:32 +0000)
golang/install.ps1

index 271960a84508be0991c7f22cd4b2d5332f3dfd7c..5649e07251d53e3f79423706db8d89ccb20a6bc0 100644 (file)
@@ -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"))
 {