diff --git a/runner_facebook.sh b/runner_facebook.sh index fff4966..cb74c8e 100755 --- a/runner_facebook.sh +++ b/runner_facebook.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash OLD=$PWD -cd $(dirname $0) +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + +cd $DIR if [ -d "/usr/local/crawler-venv" ] then