From 4a98cfc927aba359e132f978d99707238aa35c85 Mon Sep 17 00:00:00 2001 From: Yannick Dorn Date: Tue, 29 Nov 2022 21:57:39 -0500 Subject: [PATCH] quick bug fix --- runner/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/parser.go b/runner/parser.go index e9e94063..d866163a 100644 --- a/runner/parser.go +++ b/runner/parser.go @@ -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:], "/")