diff --git a/utils/modifycommand.go b/utils/modifycommand.go index 3890560..5bcd65c 100644 --- a/utils/modifycommand.go +++ b/utils/modifycommand.go @@ -206,6 +206,9 @@ func ExpandGLobs(patterns map[string]struct{}) ([]string, error) { logger.Debug("Found %d matches for pattern %s", len(matches), pattern) for _, m := range matches { m = filepath.Join(root, m) + m = filepath.Clean(m) + m = strings.ReplaceAll(m, "\\", "/") + info, err := os.Stat(m) if err != nil { logger.Warning("Error getting file info for %s: %v", m, err)