mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
Use __dirname to make sure the relative path is relative to where we expect.
This commit is contained in:
parent
791cbda490
commit
5d89b74bab
@ -19,7 +19,7 @@ exports.getDeviceUuid = ->
|
||||
|
||||
# Parses package.json and returns resin-supervisor's version
|
||||
exports.getSupervisorVersion = ->
|
||||
fs.readFileAsync '../package.json', 'utf-8'
|
||||
fs.readFileAsync(__dirname + '/../package.json', 'utf-8')
|
||||
.then (data) ->
|
||||
obj = JSON.parse data
|
||||
return obj.version
|
||||
|
Loading…
Reference in New Issue
Block a user