summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-08-18 01:03:34 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-18 01:05:35 +0200
commite3ee8f680b727a4662aec414febe4a8e82921a63 (patch)
tree3182bf3830b4a62eb4dc82df6b6dbb0d62671d06
parentfa9fe91849e46ea50cd32cc55539a4f0833eb642 (diff)
downloaddbscripts-e3ee8f680b727a4662aec414febe4a8e82921a63.tar.gz
dbscripts-e3ee8f680b727a4662aec414febe4a8e82921a63.tar.xz
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>
-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)"