diff options
-rwxr-xr-x | misc-scripts/ftpdir-cleanup | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup index 622d7ed..9331a4e 100755 --- a/misc-scripts/ftpdir-cleanup +++ b/misc-scripts/ftpdir-cleanup @@ -83,6 +83,9 @@ for arch in ${ARCHES[@]}; do cd "$ftppath" for pkg in *$arch$PKGEXT; do + if [ "$pkg" = "*$arch$PKGEXT" ]; then + continue + fi pkgname="$(getpkgname $pkg)" for p in ${TMPDIR}/${pkgname}-*; do if [ -d "${p}" -a "$(getpkgname $(basename ${p}))" = "${pkgname}" ]; then |