Last active
July 25, 2017 15:38
-
-
Save azisaka/86a77b1cfe28870f68c71a0e6569db7a to your computer and use it in GitHub Desktop.
Download and Install PhantomJS
This file contains 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 | |
PHANTOMJS=phantomjs-2.1.1-linux-x86_64 | |
PHANTOMJS_FILE=$PHANTOMJS.tar.bz2 | |
cd /tmp | |
curl -LO https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_FILE | |
tar xvjf $PHANTOMJS_FILE | |
mv $PHANTOMJS/bin/phantomjs /usr/local/bin | |
rm -rf $PHANTOMJS | |
rm /tmp/$PHANTOMJS_FILE | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment