From e6323fbad87947970599936c56250f90b74c3d87 Mon Sep 17 00:00:00 2001 From: Ice3man Date: Mon, 21 Sep 2020 13:16:22 +0530 Subject: [PATCH] Update config.go --- pkg/runner/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runner/config.go b/pkg/runner/config.go index 53626c5..c236b91 100644 --- a/pkg/runner/config.go +++ b/pkg/runner/config.go @@ -83,7 +83,7 @@ func CheckConfigExists(configPath string) bool { // MarshalWrite writes the marshaled yaml config to disk func (c *ConfigFile) MarshalWrite(file string) error { - f, err := os.OpenFile(file, os.O_WRONLY|os.O_CREATE, 0755) + f, err := os.OpenFile(file, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755) if err != nil { return err }