summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-07-17 21:35:49 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-17 21:35:49 +0200
commit4b4a648c3ba4612d82ed1c6c23eb81fcef97fd14 (patch)
treed51021ca534aa5bca41fb243f77373e4f55e1b7a /cron-jobs
parentb354593994a96901f4b86a0fb734edb5cb1b2348 (diff)
downloaddbscripts-4b4a648c3ba4612d82ed1c6c23eb81fcef97fd14.tar.gz
dbscripts-4b4a648c3ba4612d82ed1c6c23eb81fcef97fd14.tar.xz
sourceballs: skip nonexistant FTP paths
This is useful when running on separate machines that don't have all repos Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/sourceballs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 625d90d..d07c482 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -56,6 +56,10 @@ for repo in $repos; do
for arch in $arches; do
export CARCH="$arch"
ftppath="$ftpbase/$repo/os/$arch"
+ if [ ! -d "$ftppath" ]; then
+ echo "FTP path does not exist: $ftppath" >2
+ continue
+ fi
cd $ftppath
for pkg in *$PKGEXT; do
pkgname=$(getpkgname $pkg)