diff --git a/builder/src/Git.hs b/builder/src/Git.hs new file mode 100644 index 00000000..33e6929f --- /dev/null +++ b/builder/src/Git.hs @@ -0,0 +1,16 @@ +module Git + ( checkInstalledGit + ) + where + + +import System.Directory (findExecutable) + + +checkInstalledGit :: IO Bool +checkInstalledGit = do + gitPath <- findExecutable "git" + return $ case gitPath of + Just _ -> True + Nothing -> False + diff --git a/gren.cabal b/gren.cabal index 61e2aeef..a992c376 100644 --- a/gren.cabal +++ b/gren.cabal @@ -85,6 +85,7 @@ Executable gren File Generate Http + Git Reporting Reporting.Exit Reporting.Exit.Help