Permalink
Browse files

Merge pull request #170 from joeyw/zip-album-downloads

Zip album downloads instead of tarball. Closes #169.
  • Loading branch information...
holman committed Jun 14, 2012
2 parents 4721fa5 + 11e8954 commit 167ed966a54697e950768ae6da23bc84b6a11af4
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/album.rb
View
@@ -44,7 +44,7 @@ def songs
def zipped!
return if File.exist?(zip_path)
FileUtils.mkdir_p "/tmp/play-zips"
- system 'tar', '-cf', zip_path, '-C', File.expand_path('..',path), File.basename(path)
+ system 'zip', '-0rjq', zip_path, path
end
# The name of the zipfile.

0 comments on commit 167ed96

Please sign in to comment.