diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2014-01-05 04:21:24 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2014-01-05 04:21:24 +0000 |
commit | 7e93af9ef087cd048dd42cef71328ec7f75e885c (patch) | |
tree | a4d9d42d245e96cb4dd4ee070f4aad6cccddc694 /db-cleanup | |
parent | ea21f1388681d4fed43201bda54efc9d63aadc88 (diff) |
fix use of $0 in db-cleanup
Diffstat (limited to 'db-cleanup')
-rwxr-xr-x | db-cleanup | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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}/ |