Skip to content

Commit

Permalink
fix n-cli not being able to find the config file on Windows #1 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
verzac authored Jan 28, 2024
1 parent 5984c45 commit 02f493b
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 02f493b

Please sign in to comment.