Don't add a newline when exporting values
This commit is contained in:
parent
184b3ef7cb
commit
ab21f99955
@ -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")
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user