summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-18 16:38:21 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-18 16:38:21 +0200
commitb48b6b62b70fda2cc0318668eeda457c0f8d2123 (patch)
treef07900c546e2dee7413edffacbdd35295e18ca99 /cron-jobs
parent683db123710ff9092ae99929fce232620932fdb0 (diff)
downloaddbscripts-b48b6b62b70fda2cc0318668eeda457c0f8d2123.tar.gz
dbscripts-b48b6b62b70fda2cc0318668eeda457c0f8d2123.tar.xz
fix typo
Diffstat (limited to 'cron-jobs')
-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 0a43bd1..5c8776e 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -81,7 +81,7 @@ for repo in ${repos[@]}; do
fi
if [ -n "$(find "${FTP_BASE}/${repo}/os/any" -type d -empty)" ]; then
msg "Removing empty legacy directory ${repo}/os/any"
- ${CLEANUP_DRYRUN} && rmdir "${FTP_BASE}/${repo}/os/any"
+ ${CLEANUP_DRYRUN} || rmdir "${FTP_BASE}/${repo}/os/any"
continue
fi
find "${FTP_BASE}/${repo}/os/any" -name "*${PKGEXT}" -printf '%f\n' | sort > "${WORKDIR}/any-${repo}"