fix quoting when shelling out to shasum
This commit is contained in:
parent
0ec21ed984
commit
acd00e4bd5
1 changed files with 2 additions and 1 deletions
3
scrub
3
scrub
|
|
@ -103,7 +103,8 @@ class Scrubber
|
|||
end
|
||||
|
||||
def sha1(filename)
|
||||
`zsh -c "noglob shasum \\\"#{filename}\\\""`.split.first
|
||||
# holy quoting batman!
|
||||
`shasum "#{filename.gsub(/(\$)/, '\\\\\\1')}"`.split.first
|
||||
end
|
||||
|
||||
def hashes_filename(dir)
|
||||
|
|
|
|||
Loading…
Reference in a new issue