summaryrefslogtreecommitdiff
path: root/db-list-unsigned-packages
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-12-31 15:49:06 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-12-31 15:49:06 -0500
commit6a093f1dc6bd5398115544dd229b520f9432e122 (patch)
treee2c81e3dad9b68ad83f3e33e28ac4d56615a6bb8 /db-list-unsigned-packages
parent9b69d5863bdf398b78ce46661dabb9abec09385e (diff)
use `readlink -e` on $0
Diffstat (limited to 'db-list-unsigned-packages')
-rwxr-xr-xdb-list-unsigned-packages6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-list-unsigned-packages b/db-list-unsigned-packages
index 3b5a5bd..4e90d42 100755
--- a/db-list-unsigned-packages
+++ b/db-list-unsigned-packages
@@ -20,8 +20,8 @@ set -e
# unsigned packages available for architecture $1 and specified for
# architecture $2 (usually $1 or any, default is to list all).
-. "$(dirname $0)/db-functions"
-. "$(dirname $0)/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
+. "$(dirname "$(readlink -e "$0")")/config"
if [ $# -lt 1 ]; then
msg "usage: $(basename $0) <architecture>"
@@ -34,5 +34,5 @@ shift
for repo in ${PKGREPOS[@]}
do
db="${FTP_BASE}/${repo}/os/${arch}/${repo}.db"
- [ -f "$db" ] && "$(dirname $0)/db-list-unsigned-packages.py" "$repo" "$@" < "$db"
+ [ -f "$db" ] && "$(dirname "$(readlink -e "$0")")/db-list-unsigned-packages.py" "$repo" "$@" < "$db"
done