Skip to content

Commit

Permalink
Fixed init not setting the proper config versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
brett19 committed Sep 14, 2023
1 parent ab0cd1b commit aa4e895
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ var initCmd = &cobra.Command{

curConfig, _ := cbdcconfig.Load(ctx)
if curConfig == nil {
curConfig = &cbdcconfig.Config{}
curConfig = &cbdcconfig.Config{
Version: cbdcconfig.Version,
}
}

readString := func(q string, defaultValue string, sensitive bool) string {
Expand Down

0 comments on commit aa4e895

Please sign in to comment.