mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 22:23:13 +00:00
Merge pull request #89 from resin-io/fix-os-version-reporting
Quickfix: use String .split instead of _.split when getting Host OS version
This commit is contained in:
commit
8e4d5783e5
@ -181,10 +181,10 @@ exports.updateState = do ->
|
||||
exports.getOSVersion = ->
|
||||
fs.readFileAsync(config.hostOsVersionPath)
|
||||
.then (releaseData) ->
|
||||
lines = _.split(releaseData, "\n")
|
||||
lines = releaseData.split("\n")
|
||||
releaseItems = {}
|
||||
for line in lines
|
||||
[ key, val ] = _.split(line, '=')
|
||||
[ key, val ] = line.split('=')
|
||||
releaseItems[_.trim(key)] = _.trim(val)
|
||||
return releaseItems['PRETTY_NAME']
|
||||
.catch (err) ->
|
||||
|
Loading…
Reference in New Issue
Block a user