And fix the god damn backslashes fuck windows

This commit is contained in:
2025-04-01 11:29:57 +02:00
parent 633eebfd2a
commit 4ff2ee80ee

View File

@@ -111,6 +111,7 @@ func AggregateGlobs(commands []ModifyCommand) map[string]struct{} {
for _, command := range commands { for _, command := range commands {
for _, glob := range command.Files { for _, glob := range command.Files {
glob = strings.Replace(glob, "~", os.Getenv("HOME"), 1) glob = strings.Replace(glob, "~", os.Getenv("HOME"), 1)
glob = strings.ReplaceAll(glob, "\\", "/")
globs[glob] = struct{}{} globs[glob] = struct{}{}
} }
} }