Sort paths matched by a glob when '-f /some/wild*card' is given

This commit is contained in:
Jordan Sissel 2012-07-19 11:48:03 -07:00
parent b5d70840f4
commit 742c70df3e

View file

@ -244,7 +244,7 @@ class LogStash::Agent
else else
# Get a list of files matching a glob. If the user specified a single # Get a list of files matching a glob. If the user specified a single
# file, then this will only have one match and we are still happy. # file, then this will only have one match and we are still happy.
paths = Dir.glob(@config_path) paths = Dir.glob(@config_path).sort
end end
concatconfig = [] concatconfig = []