diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-08 20:49:48 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-08 21:27:09 -0500 |
commit | d3afe9bb766bbdfaab1474d21fd5e28f0a356039 (patch) | |
tree | fbbd414f8526b5ae053fc708cd6844dbfadd3ecb /cron-jobs/ftpdir-cleanup | |
parent | aefd5a4d961e3eca3326c90ba266d04b325c1f15 (diff) |
Avoid using $(basename $var) , use ${var##*/} instead
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 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 |