summaryrefslogtreecommitdiff
path: root/db-cleanup
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2014-01-05 04:21:24 +0000
committerParabola <dev@list.parabolagnulinux.org>2014-01-05 04:21:24 +0000
commit7e93af9ef087cd048dd42cef71328ec7f75e885c (patch)
treea4d9d42d245e96cb4dd4ee070f4aad6cccddc694 /db-cleanup
parentea21f1388681d4fed43201bda54efc9d63aadc88 (diff)
fix use of $0 in db-cleanup
Diffstat (limited to 'db-cleanup')
-rwxr-xr-xdb-cleanup4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-cleanup b/db-cleanup
index 904c06e..841800b 100755
--- a/db-cleanup
+++ b/db-cleanup
@@ -43,7 +43,7 @@ for _repo in ${PKGREPOS[@]}; do
bsdtar tf "${dbfile}" | \
cut -d'/' -f1 | \
sort -u | \
- sed "s|$|*|" >> /tmp/$0.$$.filter
+ sed "s|$|*|" >> /tmp/${0##*/}.$$.filter
done
done
@@ -54,7 +54,7 @@ for POOL in ${PKGPOOLS[@]} ${SRCPOOLS[@]}; do
msg2 "${POOL}"
rsync ${EXTRAFLAGS} -va --delete-excluded \
- --include-from="/tmp/$0.$$.filter" \
+ --include-from="/tmp/${0##*/}.$$.filter" \
--exclude="*" \
${FTP_BASE}/${POOL}/ \
${FTP_BASE}/${POOL}/