summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs')
-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