diff --git a/internal/exec/util/path_sort.go b/internal/exec/util/path_sort.go index 05ad40c82..c241736bf 100644 --- a/internal/exec/util/path_sort.go +++ b/internal/exec/util/path_sort.go @@ -20,7 +20,7 @@ import ( func Depth(path string) uint { var count uint = 0 - for p := filepath.Clean(path); p != "/"; count++ { + for p := filepath.Clean(path); p != "/" && p != "."; count++ { p = filepath.Dir(p) } return count