Commit 602fd2b5 602fd2b5a8b9d2bf99d6ea71c82b139d0582ae69 by Nicolas Perriault

better executable original path resolution

1 parent b2e004ad
#!/usr/bin/env bash
CASPER_EXECUTABLE=${BASH_SOURCE[0]}
CASPER_EXECUTABLE=${BASH_SOURCE[0]}
if [ -h "$CASPER_EXECUTABLE" ]; then
while [ -h "$CASPER_EXECUTABLE" ]; do
CASPER_EXECUTABLE="$( readlink $CASPER_EXECUTABLE )"
fi
done
CASPERJS_HOME="$( cd -PL "$( dirname "$CASPER_EXECUTABLE" )" && cd .. && pwd )"
phantomjs $CASPERJS_HOME/casper.js --casper-path=$CASPERJS_HOME $*
......