From 4ff2ee80eea7003fd0b6708f56ed70027d9e4625 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 1 Apr 2025 11:29:57 +0200 Subject: [PATCH] And fix the god damn backslashes fuck windows --- utils/modifycommand.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/modifycommand.go b/utils/modifycommand.go index 7b76e60..f7547ce 100644 --- a/utils/modifycommand.go +++ b/utils/modifycommand.go @@ -111,6 +111,7 @@ func AggregateGlobs(commands []ModifyCommand) map[string]struct{} { for _, command := range commands { for _, glob := range command.Files { glob = strings.Replace(glob, "~", os.Getenv("HOME"), 1) + glob = strings.ReplaceAll(glob, "\\", "/") globs[glob] = struct{}{} } }