diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-22 01:11:42 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-22 01:11:42 +0200 |
commit | 7af26d483b6987e0f3d42b25d8cb4e39f691a0a3 (patch) | |
tree | 9c30520622d9982c57e606daefc7bb1a0781cb17 /cron-jobs/sourceballs | |
parent | 4498eca19bcf79cef2fd71e8ab0938371c6cba71 (diff) | |
download | dbscripts-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/sourceballs')
-rwxr-xr-x | cron-jobs/sourceballs | 1 |
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}" |