feat: added prerequisites

This commit is contained in:
Simon Cornet 2025-02-25 12:41:10 +01:00
commit 41d4efd624
3 changed files with 23 additions and 4 deletions

View 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)
}
}