summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmisc-scripts/ftpdir-cleanup3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup
index 2573cf4..ca411cf 100755
--- a/misc-scripts/ftpdir-cleanup
+++ b/misc-scripts/ftpdir-cleanup
@@ -84,7 +84,8 @@ done
if [ -d "$ftppath_base/any" ]; then
cd "$ftppath_base/any"
for pkg in *$PKGEXT; do
- if [ ! -h $ftppath_base/i686/$pkg -a ! -h $ftppath_base/x86_64/$pkg ]; then
+ [ -f "$pkg" ] || continue # in case we get a file named "*.pkg.tar.gz"
+ if [ ! -h "$ftppath_base/i686/$pkg" -a ! -h "$ftppath_base/x86_64/$pkg" ]; then
ARCHINDEPFILES="$ARCHINDEPFILES $pkg"
fi
done