feat: added prerequisites
This commit is contained in:
parent
ce273209c1
commit
41d4efd624
3 changed files with 23 additions and 4 deletions
15
cmd/gogitlabber/prerequisites.go
Normal file
15
cmd/gogitlabber/prerequisites.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
func verifyGitAvailable() {
|
||||
_, err := exec.LookPath("git")
|
||||
if err != nil {
|
||||
log.Fatalf("Error: could not find git in path")
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue