summaryrefslogtreecommitdiff
path: root/db-repo-add
diff options
context:
space:
mode:
Diffstat (limited to 'db-repo-add')
-rwxr-xr-xdb-repo-add6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-repo-add b/db-repo-add
index b83fb77..2b7894a 100755
--- a/db-repo-add
+++ b/db-repo-add
@@ -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> <pkgfile> ..."
+ msg "usage: ${0##*/} <repo> <arch> <pkgfile> ..."
exit 1
fi