mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 22:23:13 +00:00
Quickfix: use String .split instead of _.split
lodash 3 doesn't have the _.split function :S
This commit is contained in:
parent
9c52149f0f
commit
94e34ee990
@ -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