Skip to content

Commit

Permalink
Merge pull request #180 from mroth/lolsrv-fix-upload-animated-lols
Browse files Browse the repository at this point in the history
Allow lolsrv plugin to upload gifs & jpgs
  • Loading branch information
matthutchinson committed Dec 3, 2013
2 parents aa2a3a6 + a1c6ac5 commit 242e3da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/lolcommits/plugins/lolsrv.rb
Expand Up @@ -26,9 +26,7 @@ def is_configured?
def sync
existing = get_existing_lols
unless existing.nil?
Dir.glob(self.runner.config.loldir + "/*.jpg") do |item|
next if item == "." or item == ".."
# do work on real items
Dir[self.runner.config.loldir + "/*.{jpg,gif}"].each do |item|
sha = File.basename(item, ".*")
unless existing.include?(sha) || sha == "tmp_snapshot"
upload(item, sha)
Expand Down

0 comments on commit 242e3da

Please sign in to comment.