summaryrefslogtreecommitdiff
path: root/db-repo-remove
diff options
context:
space:
mode:
Diffstat (limited to 'db-repo-remove')
-rwxr-xr-xdb-repo-remove6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-repo-remove b/db-repo-remove
index 4f04ed1..09e34da 100755
--- a/db-repo-remove
+++ b/db-repo-remove
@@ -1,10 +1,10 @@
#!/bin/bash
-. "$(dirname $0)/db-functions"
-. "$(dirname $0)/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
+. "$(dirname "$(readlink -e "$0")")/config"
if [ $# -lt 3 ]; then
- msg "usage: $(basename $0) <repo> <arch> <pkgname> ..."
+ msg "usage: ${0##*/} <repo> <arch> <pkgname> ..."
exit 1
fi