mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
17 lines
415 B
Bash
Executable file
17 lines
415 B
Bash
Executable file
#!/bin/bash
|
|
|
|
wget http://phantomjs.googlecode.com/files/phantomjs-1.4.1-linux-x86-dynamic.tar.gz
|
|
tar xzf phantomjs-*.tar.gz
|
|
mkdir ~/bin
|
|
ln -s `pwd`/phantomjs/bin/phantomjs ~/bin/phantomjs
|
|
Xvfb :0 2>/dev/null &
|
|
|
|
version=`phantomjs --version`
|
|
if [ "$?" = "0" ]; then
|
|
echo "PhantomJS $version installed successfully"
|
|
else
|
|
echo "Something went wrong with PhantomJS setup"
|
|
ls -la ~/bin/phantomjs
|
|
env
|
|
exit 1
|
|
fi
|