summaryrefslogtreecommitdiff
path: root/cron-jobs/update-web-db
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-12-31 14:35:11 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-12-31 14:35:11 -0500
commit99d6b1d0f1f88bf30b75243225cd461afb565f6b (patch)
tree82a5239fce117f50bd4d80365cb21bd6e5efe409 /cron-jobs/update-web-db
parentffe9ada1c43d5fd779863c4be2782f7b690a5fbc (diff)
parente6294556d3197b7d87f7659355d0e189fad613d6 (diff)
Merge branch 'cleanup' into master-merge
Conflicts: config cron-jobs/sourceballs db-functions db-move db-remove db-update
Diffstat (limited to 'cron-jobs/update-web-db')
-rwxr-xr-xcron-jobs/update-web-db6
1 files changed, 3 insertions, 3 deletions
diff --git a/cron-jobs/update-web-db b/cron-jobs/update-web-db
index 6ced4c1..713e75e 100755
--- a/cron-jobs/update-web-db
+++ b/cron-jobs/update-web-db
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname $0)/../db-functions"
-. "$(dirname $0)/../config"
+. "$(dirname "$(readlink -e "$0")")/../config"
+. "$(dirname "$(readlink -e "$0")")/../db-functions"
# setup paths
SPATH="/srv/http/archweb"
@@ -14,7 +14,7 @@ REPOS=('community-testing' 'multilib-testing' 'multilib' 'community' 'extra' 'te
LOGOUT="/tmp/archweb_update.log"
# figure out what operation to perform
-cmd="$(basename $0)"
+cmd="${0##*/}"
if [[ $cmd != "update-web-db" && $cmd != "update-web-files-db" ]]; then
die "Invalid command name '$cmd' specified!"
fi