From 81d69b8ce00c5e93a103001cb1d1a2ce17c691e1 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 1 Apr 2025 12:15:03 +0200 Subject: [PATCH] Force always / Fuck windows and its path fuck windows --- utils/modifycommand.go | 3 +++ 1 file changed, 3 insertions(+) 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)