Skip to content

Commit

Permalink
fix for setting default as arg
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Oct 23, 2023
1 parent 556ae05 commit fbf34b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func directConfigSwitch(desiredConfig string) error {
fmt.Printf(utils.PromptColor, "Config ")
fmt.Printf(utils.CyanColor, desiredConfig)
fmt.Printf(utils.PromptColor, " set.\n")
if desiredConfig == "default" {
desiredConfig = "config"
}
utils.WriteFile(desiredConfig, utils.GetHomeDir())
return nil
}
Expand Down

0 comments on commit fbf34b3

Please sign in to comment.