Skip to content

Commit

Permalink
alphabetically sort files to be checked
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlinsley committed May 11, 2014
1 parent f355f44 commit db0e247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/travis_cache
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def digest_changed?(to_check, old_digest_file, new_digest_file)
else
# Supports a single file, as well as a folder
files = Dir[to_check, "#{to_check}/**/*"].reject{ |f| File.directory? f }
content = files.map{ |f| File.read f }.join
content = files.sort!.map{ |f| File.read f }.join
digest = Digest::SHA2.hexdigest content
File.write new_digest_file, digest
end
Expand Down

0 comments on commit db0e247

Please sign in to comment.