Skip to content

Commit

Permalink
small change on dmsghttp config gen logic (#1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom authored Oct 9, 2024
1 parent c0b3812 commit 8ab4b9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/skywire-cli/commands/config/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ var genConfigCmd = &cobra.Command{
serviceConfURL = testServiceConfURL
}
var err error
if isDmsgHTTP {
if isPkgEnv {
if dmsgHTTPPath == visorconfig.DMSGHTTPName {
dmsgHTTPPath = visorconfig.SkywirePath + "/" + visorconfig.DMSGHTTPName //nolint
}
if isPkgEnv {
if dmsgHTTPPath == visorconfig.DMSGHTTPName {
dmsgHTTPPath = visorconfig.SkywirePath + "/" + visorconfig.DMSGHTTPName //nolint
}
}
if isDmsgHTTP {
if _, err := os.Stat(dmsgHTTPPath); err == nil {
if !isStdout {
log.Info("Found Dmsghttp config: ", dmsgHTTPPath)
Expand Down

0 comments on commit 8ab4b9d

Please sign in to comment.