commands: sort external commands by name

Closes Homebrew/homebrew#44125.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Martin Afanasjew 2015-09-18 23:40:26 +02:00 committed by Mike McQuaid
parent 036aab567d
commit 366440b5bb

View File

@ -39,6 +39,7 @@ module Homebrew
def external_commands
paths.flat_map { |p| Dir["#{p}/brew-*"] }.
map { |f| File.basename(f, ".rb")[5..-1] }.
reject { |f| f =~ /\./ }
reject { |f| f =~ /\./ }.
sort
end
end