Skip to content

Commit

Permalink
Fix initialization of cfgDir (#422)
Browse files Browse the repository at this point in the history
It is erroring with the message `Error: configuring the main config directory: mkdir : no such file or directory` because of an inverted comparison accidentally introduced in commit f713dc6.
  • Loading branch information
kpengboy authored Jan 18, 2025
1 parent eb87774 commit c566f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gmailctl/cmd/root_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func init() {

// initConfig reads in config file and ENV variables if set.
func initConfig() {
if cfgDir == "" {
if cfgDir != "" {
// Use config file from the flag.
return
}
Expand Down

0 comments on commit c566f95

Please sign in to comment.