Last active
May 18, 2020 19:40
-
-
Save EnriqueCanals/33374e8f28fc71673bef632c0d61d666 to your computer and use it in GitHub Desktop.
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
TAR=phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
URL=https://bitbucket.org/ariya/phantomjs/downloads/$TAR | |
if ! [ -e $SEMAPHORE_CACHE_DIR/$TAR ]; then ( cd $SEMAPHORE_CACHE_DIR; wget $URL ); fi | |
sudo tar -xjf $SEMAPHORE_CACHE_DIR/$TAR -C /usr/local/ | |
sudo ln -fs /usr/local/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs | |
echo "PhantomJS version: $(phantomjs --version)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment