diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-17 21:35:49 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-17 21:35:49 +0200 |
commit | 4b4a648c3ba4612d82ed1c6c23eb81fcef97fd14 (patch) | |
tree | d51021ca534aa5bca41fb243f77373e4f55e1b7a /cron-jobs | |
parent | b354593994a96901f4b86a0fb734edb5cb1b2348 (diff) | |
download | dbscripts-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-x | cron-jobs/sourceballs | 4 |
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) |