summaryrefslogtreecommitdiff
path: root/pkg/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/hooks')
-rw-r--r--pkg/hooks/read.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/hooks/read.go b/pkg/hooks/read.go
index fab37351b..29953ac5d 100644
--- a/pkg/hooks/read.go
+++ b/pkg/hooks/read.go
@@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
+ "os"
"path/filepath"
"strings"
@@ -71,6 +72,9 @@ func ReadDir(path string, hooks map[string]*current.Hook) error {
if err == ErrNoJSONSuffix {
continue
}
+ if os.IsNotExist(err) {
+ continue
+ }
return err
}
hooks[file.Name()] = hook