summaryrefslogtreecommitdiff
path: root/misc-scripts/ftpdir-cleanup
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-08-17 16:03:34 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-17 16:05:35 -0700
commite3ee8f680b727a4662aec414febe4a8e82921a63 (patch)
tree3182bf3830b4a62eb4dc82df6b6dbb0d62671d06 /misc-scripts/ftpdir-cleanup
parentfa9fe91849e46ea50cd32cc55539a4f0833eb642 (diff)
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 <aaronmgriffin@gmail.com>
Diffstat (limited to 'misc-scripts/ftpdir-cleanup')
-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)"