Handle empty path correctly

This commit is contained in:
Kevin Sawicki
2014-11-18 14:19:12 -08:00
parent 32ff599a61
commit c3d1dd82f0

View File

@@ -115,7 +115,7 @@ updatePath = (callback) ->
getPath (error, pathEnv) ->
return callback(error) if error?
pathSegments = pathEnv.split(';')
pathSegments = pathEnv.split(/;+/).filter (pathSegment) -> pathSegment
if pathSegments.indexOf(binFolder) is -1
addBinToPath(pathSegments, callback)
else