summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmisc-scripts/ftpdir-cleanup2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup
index fa43bb0..a9865c6 100755
--- a/misc-scripts/ftpdir-cleanup
+++ b/misc-scripts/ftpdir-cleanup
@@ -95,7 +95,7 @@ for arch in ${ARCHES[@]}; do
cd "$ftppath"
for pkg in *$arch$PKGEXT; do
- if [ "$pkg" = "*$arch$PKGEXT" ]; then
+ if [ ! -e "$pkg" ]; then
continue
fi
pkgname="$(getpkgname $pkg)"