Don't add a newline when exporting values

This commit is contained in:
James Hewitt 2023-05-12 14:22:33 +01:00
parent 184b3ef7cb
commit ab21f99955
No known key found for this signature in database
GPG Key ID: EA6C3C654B6193E4

View File

@ -682,7 +682,7 @@ func exportValue(path []string, fName string) error {
} }
bk := []byte(path[len(path)-1]) bk := []byte(path[len(path)-1])
v := b.Get(bk) v := b.Get(bk)
return writeToFile(fName, string(v)+"\n", os.O_CREATE|os.O_WRONLY|os.O_TRUNC) return writeToFile(fName, string(v), os.O_CREATE|os.O_WRONLY|os.O_TRUNC)
} }
return errors.New("exportValue: Invalid Bucket") return errors.New("exportValue: Invalid Bucket")
}) })