diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-11-24 07:32:18 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-11-24 07:32:18 +0100 |
commit | 3455be4e4a3fa1c70580fd6ccb521f61c98c64c2 (patch) | |
tree | 0718166f37084d2f1ad215038a4cd763d3090ef1 /cron-jobs/sourceballs | |
parent | 2a4938ecf8e9bddc75cd2533812cb587812eb928 (diff) |
sourceballs: fix working directory
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-x | cron-jobs/sourceballs | 5 |
1 files changed, 2 insertions, 3 deletions
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 |