mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
lib: add missing flag to openAsync()
Signed-off-by: Petros Angelatos <petrosagg@gmail.com> Change-type: patch
This commit is contained in:
parent
f273da4828
commit
7d03de51f6
@ -19,6 +19,6 @@ exports.writeFileAtomic = (path, data) ->
|
||||
exports.safeRename = (src, dest) ->
|
||||
fs.renameAsync(src, dest)
|
||||
.then ->
|
||||
fs.openAsync(path.dirname(dest))
|
||||
fs.openAsync(path.dirname(dest), 'r')
|
||||
.tap(fs.fsyncAsync)
|
||||
.then(fs.closeAsync)
|
||||
|
Loading…
Reference in New Issue
Block a user