diff --git a/util/util.go b/util/util.go index 282f2e9..086ee2f 100644 --- a/util/util.go +++ b/util/util.go @@ -80,7 +80,7 @@ func SaveCurrentState(response types.SpaceAPIResponseV14) { } // Open persistent state file - file, err := os.OpenFile(savedStateJSONPath, os.O_RDWR|os.O_CREATE, 0644) + file, err := os.OpenFile(savedStateJSONPath, os.O_WRONLY|os.O_CREATE, 0644) if err != nil { log.Fatalln("Failed opening", savedStateJSONPath, "while trying to save current state... error:", err) }