Skip to content

Commit 67ce2c7

Browse files
committed
fix: Use Writeasconfig so that it won't fail if the file exists
1 parent 9586ec2 commit 67ce2c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func ensureConfigDefaults() {
143143
return err
144144
}
145145

146-
return viper.SafeWriteConfigAs(path.Join(utils.NitricConfigDir(), ".nitric-config.yaml"))
146+
return viper.WriteConfigAs(path.Join(utils.NitricConfigDir(), ".nitric-config.yaml"))
147147
},
148148
StopMsg: "Configfile updated"}, tasklet.Opts{})
149149
}

0 commit comments

Comments
 (0)