Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo in Gzip logic
  • Loading branch information
runpaint committed Nov 14, 2009
1 parent 07b2138 commit 4829901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -192,7 +192,7 @@ desc "Gzip the website"
task gzip: :www do
Dir.chdir(WEB_OUT) do
FileList['*', '**/*', '**/**/*'].each do |f|
if File.file?(f) && ['html','css','js'].include?(f[-3..-1])
if File.file?(f) && ['html','css','js'].any?{|e| f.end_with?(e)}
new_f = "#{f}.en"
mv f, new_f
sh("gzip --best -c #{new_f} > #{new_f}.gz") or raise "Couldn't gzip #{new_f}: #$!"
Expand Down

0 comments on commit 4829901

Please sign in to comment.