From 3455be4e4a3fa1c70580fd6ccb521f61c98c64c2 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 24 Nov 2010 07:32:18 +0100 Subject: sourceballs: fix working directory --- cron-jobs/sourceballs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cron-jobs/sourceballs') diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs index 9d52d11..6a86a0d 100755 --- a/cron-jobs/sourceballs +++ b/cron-jobs/sourceballs @@ -1,10 +1,9 @@ #!/bin/bash -pushd "${WORKDIR}" >/dev/null - -dirname="$(dirname $0)" +dirname="$(dirname $(readlink -e $0))" . "${dirname}/../db-functions" . "${dirname}/../config" +pushd "${WORKDIR}" >/dev/null script_lock -- cgit v1.2.3-2-g168b