Commit 9dfd472d authored by Leo Iannacone's avatar Leo Iannacone

better in-line distributions getter

parent 8de13bd2
......@@ -33,10 +33,7 @@ get_distributions = (callback) ->
if err
errors_handler "get_distributions", err
return
distributions = []
for dir in directories
name = dir.split('/')[-2..][0]
distributions.push name
distributions = (dir.split(path.sep)[-2...-1] for dir in directories)
callback(distributions)
get_distribution_pool_path = (data) ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment