quick bug fix

This commit is contained in:
Yannick Dorn 2022-11-29 21:57:39 -05:00
parent faa6960be0
commit 4a98cfc927

View File

@ -42,7 +42,7 @@ func GlobExpand(args []string, cwd string) ([]string, error) {
//if the split diff is more than one, then add an extra number to help with slicing the array.
//If this step does not exist, then an empty string will be returned on join, if dir depth is 1
if matchSplitLength-splitCwdLength > 1 {
if matchSplitLength-splitCwdLength > 2 {
splitCwdLength++
}
newMatch := strings.Join(strings.Split(match, "/")[splitCwdLength:], "/")