default to writing to yaml DB unless $RO set

master
Bel LaPointe 2023-04-07 11:42:03 -06:00
parent fb62f0ad0c
commit 60c25fc3df
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ func newYamlDB(p string) (yamlDB, error) {
} }
func (db yamlDB) Close() { func (db yamlDB) Close() {
if os.Getenv("W") == "" { if os.Getenv("RO") != "" {
return return
} }
b, err := yaml.Marshal(db) b, err := yaml.Marshal(db)