summaryrefslogtreecommitdiff
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-11-24 07:32:18 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-24 07:32:18 +0100
commit3455be4e4a3fa1c70580fd6ccb521f61c98c64c2 (patch)
tree0718166f37084d2f1ad215038a4cd763d3090ef1 /cron-jobs/sourceballs
parent2a4938ecf8e9bddc75cd2533812cb587812eb928 (diff)
sourceballs: fix working directory
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs5
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