Skip to content

Commit

Permalink
Fixing bug that if "chunk"ing wasn't set, would cause an endless loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelober committed May 21, 2010
1 parent aeb1eb5 commit f7d1c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/girlscout.rake
Expand Up @@ -15,8 +15,8 @@ namespace :girlscout do
file = ENV['file'] || 'public/sitemap.xml'
host = ENV['host']
port = ENV['port']
chunk = ENV['chunk'].to_i || 50000
wait = ENV['wait'].to_i
chunk = ENV['chunk'] ? ENV['chunk'].to_i : 50000
wait = ENV['wait'] ? ENV['wait'].to_i : 3
dir = ENV['dir']
scout = Girlscout.new(Rails.root.join(file))
scout.parse_urls!
Expand Down

0 comments on commit f7d1c89

Please sign in to comment.