summaryrefslogtreecommitdiffstats
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-11-23 14:44:16 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-23 14:44:16 +0100
commit2a4938ecf8e9bddc75cd2533812cb587812eb928 (patch)
tree65467533fd496ee555625e3596488698838b6cdc /cron-jobs/sourceballs
parent79f70daa2a450f24d7ce00957651c2cac89599ec (diff)
downloaddbscripts-2a4938ecf8e9bddc75cd2533812cb587812eb928.tar.gz
dbscripts-2a4938ecf8e9bddc75cd2533812cb587812eb928.tar.xz
sourceballs: Move to our workdir first to fix warning with sudo usage
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 9b6a1e4..9d52d11 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -1,5 +1,7 @@
#!/bin/bash
+pushd "${WORKDIR}" >/dev/null
+
dirname="$(dirname $0)"
. "${dirname}/../db-functions"
. "${dirname}/../config"