Skip to content

Commit

Permalink
potential fix
Browse files Browse the repository at this point in the history
  • Loading branch information
verzac committed Jan 28, 2024
1 parent 5984c45 commit bf82895
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func initConfig() {
viper.SetConfigFile(cfgFile)
} else {
viper.AddConfigPath("$HOME/.n-cli")
viper.AddConfigPath("$USERPROFILE/.n-cli")
viper.SetConfigName("config")
if err := config.InitConfigWhenMissing(); err != nil {
fmt.Println("Exiting - config is missing and we cannot initialise a new one.")
Expand Down

0 comments on commit bf82895

Please sign in to comment.