Skip to content

Commit 20429ad

Browse files
authored
Merge pull request #75 from asalkeld/fix-config-file-writing
fix: Use Writeasconfig so that it won't fail if the file exists
2 parents 9586ec2 + 67ce2c7 commit 20429ad

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)