From c31bf61b945400e002f983e6e2dd37a275de4a6c Mon Sep 17 00:00:00 2001 From: StefanYohansson Date: Thu, 4 Jul 2019 20:43:00 -0300 Subject: [PATCH] fix runner path --- runner_facebook.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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