summaryrefslogtreecommitdiffstats
path: root/misc-scripts/ftpdir-cleanup-repo
diff options
context:
space:
mode:
Diffstat (limited to 'misc-scripts/ftpdir-cleanup-repo')
-rwxr-xr-xmisc-scripts/ftpdir-cleanup-repo2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-scripts/ftpdir-cleanup-repo b/misc-scripts/ftpdir-cleanup-repo
index 20f297b..bfc971e 100755
--- a/misc-scripts/ftpdir-cleanup-repo
+++ b/misc-scripts/ftpdir-cleanup-repo
@@ -63,7 +63,7 @@ for arch in ${ARCHES[@]}; do
cd "$ftppath"
for pkg in $CLEANUP_TMPDIR/*; do
- [ -f "${pkg}" ] || continue
+ [ ! -d "${pkg}" ] && continue
filename=$(grep -A1 '^%FILENAME%$' "${pkg}/desc" | tail -n1)
if [ ! -e "${filename}" ]; then