mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Handle empty path correctly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user