hookscripts: glob hook directories

This commit is contained in:
Caleb Connolly
2023-04-07 01:13:15 +01:00
parent f0544999db
commit b54044a605
2 changed files with 8 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ func (f *FileList) Import(src *FileList) {
}
}
func (f *FileList) AddGlobbed(src string, dest string) (error) {
func (f *FileList) AddGlobbed(src string, dest string) error {
fFiles, err := misc.GetFiles([]string{src}, true)
if err != nil {
return fmt.Errorf("unable to add %q: %w", src, err)