diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-19 14:40:07 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-19 14:40:07 +0100 |
commit | 5c7220a4aa370d1f726eb27d99d8f9294646433d (patch) | |
tree | 699c4f1643fa94c26eb75c683ca995f890108d8d /cron-jobs/ftpdir-cleanup | |
parent | 2b7bb0c6b7aa4f7a43c82db1cf9a18d27600c62e (diff) |
Avoid calls to basename
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-x | cron-jobs/ftpdir-cleanup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup index bb1661a..7839d50 100755 --- a/cron-jobs/ftpdir-cleanup +++ b/cron-jobs/ftpdir-cleanup @@ -16,7 +16,7 @@ clean_pkg() { if [ -e "$pkg.sig" ]; then mv -f "$pkg.sig" "$CLEANUP_DESTDIR" fi - touch "${CLEANUP_DESTDIR}/$(basename ${pkg})" + touch "${CLEANUP_DESTDIR}/${pkg##*/}" fi done fi |