bin/pdfkit in pdfkit-0.4.3 vs bin/pdfkit in pdfkit-0.4.4
- old
+ new
@@ -37,9 +37,13 @@
def install(download, arch, install_to)
puts "Installing #{download} to #{install_to}"
if download =~ /.tar.bz2$/
`tar xjvf #{download}`
`mv wkhtmltopdf-#{arch} #{install_to}`
+ elsif download =~ /.tar.lzma$/
+ raise "couldn't extract archive: lzcat not found" unless system("which lzcat > /dev/null 2>/dev/null")
+ `lzcat #{download} | tar x`
+ `mv wkhtmltopdf-#{arch} #{install_to}`
else
`mv #{download} #{install_to}`
end
`sudo chmod +x #{install_to}`
end
\ No newline at end of file