summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-09-22 01:11:42 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-22 01:11:42 +0200
commit7af26d483b6987e0f3d42b25d8cb4e39f691a0a3 (patch)
tree9c30520622d9982c57e606daefc7bb1a0781cb17 /cron-jobs
parent4498eca19bcf79cef2fd71e8ab0938371c6cba71 (diff)
downloaddbscripts-7af26d483b6987e0f3d42b25d8cb4e39f691a0a3.tar.gz
dbscripts-7af26d483b6987e0f3d42b25d8cb4e39f691a0a3.tar.xz
Add a safety check for existence in pkg loop
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs')
-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}"