fix quoting when shelling out to shasum

This commit is contained in:
Sami Samhuri 2012-05-17 17:00:19 -07:00
parent 0ec21ed984
commit acd00e4bd5

3
scrub
View file

@ -103,7 +103,8 @@ class Scrubber
end end
def sha1(filename) def sha1(filename)
`zsh -c "noglob shasum \\\"#{filename}\\\""`.split.first # holy quoting batman!
`shasum "#{filename.gsub(/(\$)/, '\\\\\\1')}"`.split.first
end end
def hashes_filename(dir) def hashes_filename(dir)