Permalink
Browse files

Merge pull request #49 from sibblingz/master

"touch -c" now runs in slices of 100 (instead of 1000)
  • Loading branch information...
2 parents fed6873 + 7fb3e16 commit ad9b681c3375b5d0f2299df35526f06376bdcc61 @ndbroadbent committed Jan 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/turbo-sprockets/tasks/assets.rake
@@ -76,7 +76,7 @@ namespace :assets do
if digest.nil?
::Rails.logger.debug "Updating mtimes for current assets..."
paths = known_assets.map { |asset| File.join(target, asset) }
- paths.each_slice(1000) do |slice|
+ paths.each_slice(100) do |slice|
# File.utime raises 'Operation not permitted' unless user is owner of file.
# Non-owners have permission to update mtime to the current time using 'touch'.
`touch -c #{slice.shelljoin}`

0 comments on commit ad9b681

Please sign in to comment.