summaryrefslogtreecommitdiffstats
path: root/cron-jobs/update-web-db
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs/update-web-db')
-rwxr-xr-xcron-jobs/update-web-db2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-jobs/update-web-db b/cron-jobs/update-web-db
index 6ced4c1..b1767ca 100755
--- a/cron-jobs/update-web-db
+++ b/cron-jobs/update-web-db
@@ -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