Skip to content

Commit

Permalink
don't attempt to qualify rel paths with dir-name
Browse files Browse the repository at this point in the history
  • Loading branch information
fgeller committed Sep 9, 2023
1 parent 663b21a commit b833b09
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ const (
ENV_KAFKA_VERSION = "KT_KAFKA_VERSION"
)

var (
invalidClientIDCharactersRegExp = regexp.MustCompile(`[^a-zA-Z0-9_-]`)
)
var invalidClientIDCharactersRegExp = regexp.MustCompile(`[^a-zA-Z0-9_-]`)

type command interface {
run(args []string)
Expand Down Expand Up @@ -293,7 +291,7 @@ func setupAuthTLS(auth authConfig, saramaCfg *sarama.Config) error {
}

func qualifyPath(argFN string, target *string) {
if *target != "" && !filepath.IsAbs(*target) {
if *target != "" && !filepath.IsAbs(*target) && filepath.Dir(*target) == "." {
*target = filepath.Join(filepath.Dir(argFN), *target)
}
}
Expand Down

0 comments on commit b833b09

Please sign in to comment.