diff --git a/main.go b/main.go index 01b1e9f..dffd0b2 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "fmt" "log" "os" + "os/exec" "strings" "github.com/hashicorp/hcl/v2" @@ -169,6 +170,10 @@ func main() { return } + if _, err := exec.LookPath("restic"); err != nil { + log.Fatalf("Could not find restic in path. Make sure it's installed") + } + if flag.NArg() == 0 { log.Fatalf("Requires a path to a job file, but found none") }