From e3ee8f680b727a4662aec414febe4a8e82921a63 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 17 Aug 2009 16:03:34 -0700 Subject: Replace a string compare with a -f check No real reason, this is just easier to understand, and checks like this should be the norm. If file does not exist, continue Signed-off-by: Aaron Griffin --- misc-scripts/ftpdir-cleanup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc-scripts') 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)" -- cgit v1.2.3-24-g4f1b