Skip to content

Commit

Permalink
do not hardcode sudo usage
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored and jdpace committed Jul 16, 2010
1 parent f72908a commit a930458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/pdfkit
Expand Up @@ -34,15 +34,15 @@ BANNER
# cleanup old
Dir.chdir '/tmp'
`rm -rf wkhtmltopdf*`
`sudo rm #{install_to}`
`rm #{install_to}`

# install new
`curl #{url} > #{download}`
if download =~ /.tar.bz2$/
`tar xjvf #{download}`
`sudo mv wkhtmltopdf-#{architecture} #{install_to}`
`mv wkhtmltopdf-#{architecture} #{install_to}`
else
`sudo mv #{download} #{install_to}`
`mv #{download} #{install_to}`
end
`sudo chmod +x #{install_to}`
end
Expand Down

0 comments on commit a930458

Please sign in to comment.