summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-09-21 19:11:42 -0400
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-21 19:11:42 -0400
commit7af26d483b6987e0f3d42b25d8cb4e39f691a0a3 (patch)
tree9c30520622d9982c57e606daefc7bb1a0781cb17
parent4498eca19bcf79cef2fd71e8ab0938371c6cba71 (diff)
Add a safety check for existence in pkg loop
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xcron-jobs/sourceballs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 0d8be62..f285d7f 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -49,6 +49,7 @@ for repo in $repos; do
fi
cd $ftppath
for pkg in *$PKGEXT; do
+ [ -f "$pkg" ] || continue
pkgbase=$(getpkgbase $pkg)
srcpath="$srcbase/"
srcpkg="${pkg//$PKGEXT/$SRCEXT}"