filelist/*.List(): print to stdout when starting to generate FileList
This commit is contained in:
@@ -2,6 +2,7 @@ package hookscripts
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
@@ -20,6 +21,8 @@ func New(scriptsDir string) *HookScripts {
|
||||
|
||||
func (h *HookScripts) List() ([]string, error) {
|
||||
files := []string{}
|
||||
log.Println("- Including hook scripts")
|
||||
|
||||
fileInfo, err := os.ReadDir(h.scriptsDir)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("getHookScripts: unable to read hook script dir: %w", err)
|
||||
|
Reference in New Issue
Block a user