mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 22:23:13 +00:00
Quickfix again: Cast buffer to string when getting OS version. (Sorry)
This commit is contained in:
parent
8e4d5783e5
commit
3e3e2a8d99
@ -181,7 +181,7 @@ exports.updateState = do ->
|
||||
exports.getOSVersion = ->
|
||||
fs.readFileAsync(config.hostOsVersionPath)
|
||||
.then (releaseData) ->
|
||||
lines = releaseData.split("\n")
|
||||
lines = (new String(releaseData)).split("\n")
|
||||
releaseItems = {}
|
||||
for line in lines
|
||||
[ key, val ] = line.split('=')
|
||||
|
Loading…
Reference in New Issue
Block a user