diff --git a/config/module/copy_dir.go b/config/module/copy_dir.go index 3a5f95e95..72c3dad2f 100644 --- a/config/module/copy_dir.go +++ b/config/module/copy_dir.go @@ -26,7 +26,11 @@ func copyDir(dst, src string) error { basePath := filepath.Base(path) if strings.HasPrefix(basePath, ".") { // Skip any dot files - return filepath.SkipDir + if info.IsDir() { + return filepath.SkipDir + } else { + return nil + } } dstPath := filepath.Join(dst, basePath)