Skip to content

Commit

Permalink
Fix windows path issue. (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-rieke committed Jul 4, 2024
1 parent d1cea74 commit f2f6cb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cli/trcconfigbase/utils/configinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@ func GenerateConfigsFromVault(ctx eUtils.ProcessContext, configCtx *eUtils.Confi
// Do some scrubbing...
for ie, e := range ep {
matched := false
if strings.Contains(e, trcProjectService) {
if len(trcProjectService) > 0 && strings.Contains(e, trcProjectService) {
e = strings.Replace(e, trcProjectService, "/", 1)
matched = true
} else if strings.Contains(e, trcService) {
} else if len(trcService) > 0 && strings.Contains(e, trcService) {
e = strings.Replace(e, trcService, "/", 1)
matched = true
} else if strings.Contains(e, dosProjectService) {
} else if len(dosProjectService) > 0 && strings.Contains(e, dosProjectService) {
e = strings.Replace(e, dosProjectService, "\\", 1)
matched = true
} else {
if strings.Contains(e, dosService) {
if len(dosService) > 0 && strings.Contains(e, dosService) {
e = strings.Replace(e, dosService, "\\", 1)
matched = true
}
Expand Down

0 comments on commit f2f6cb1

Please sign in to comment.