summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
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}"