Skip to content

Commit b452548

Browse files
committed
check prefixes for skip list
1 parent 6c39770 commit b452548

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/vercheck/vercheck.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ func CheckVersion(w io.Writer, commandPath string) {
6969
return
7070
}
7171

72-
if lo.Contains(commandSkipList, commandPath) {
72+
hasSkipPrefix := lo.ContainsBy(
73+
commandSkipList,
74+
func(skipPath string) bool { return strings.HasPrefix(commandPath, skipPath) },
75+
)
76+
if hasSkipPrefix {
7377
return
7478
}
7579

0 commit comments

Comments
 (0)