summaryrefslogtreecommitdiff
path: root/cron-jobs/ftpdir-cleanup
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 20:49:48 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:27:09 -0500
commitd3afe9bb766bbdfaab1474d21fd5e28f0a356039 (patch)
treefbbd414f8526b5ae053fc708cd6844dbfadd3ecb /cron-jobs/ftpdir-cleanup
parentaefd5a4d961e3eca3326c90ba266d04b325c1f15 (diff)
Avoid using $(basename $var) , use ${var##*/} instead
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-xcron-jobs/ftpdir-cleanup2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index 6455ed7..cb14382 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