Quickfix: use String .split instead of _.split

lodash 3 doesn't have the _.split function :S
This commit is contained in:
Pablo Carranza Vélez 2016-01-26 20:56:19 -03:00
parent 9c52149f0f
commit 94e34ee990

View File

@ -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) ->