Last active
September 7, 2015 11:56
-
-
Save mlocher/62a7895c7b6058219703 to your computer and use it in GitHub Desktop.
Install PhantomJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# NOTICE | |
# A new and updated version of this script is provided at | |
# https://github.com/codeship/scripts/blob/master/packages/phantomjs.sh | |
# Please switch to that version instead! | |
PHANTOMJS_VERSION="1.9.8" | |
# clean old version and setup directories | |
rm -rf ~/.phantomjs | |
mkdir ~/.phantomjs | |
# download and extract new version | |
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 -O ~/phantomjs.tar.bz2 | |
tar -xaf ~/phantomjs.tar.bz2 --strip-components=1 -C ~/.phantomjs | |
# cleanup | |
rm -f ~/phantomjs.tar.bz2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please use the version available at https://github.com/codeship/scripts/blob/master/packages/phantomjs.sh instead!