diff options
-rw-r--r-- | mirror.sh | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -42,15 +42,10 @@ done shift $(( ${OPTIND} - 1 )) list="${1:-repositories.list}" test -f "${list}" || exit 1 -pids= -while read repo; do - _update "${repo}" & - pids="${pids} $!" -done <"${list}" failed=0 -for pid in ${pids}; do - if ! wait ${pid}; then +while read repo; do + if ! _update "${repo}"; then # TODO: Parallelize this without DDOSing the hosts failed=1 fi -done +done <"${list}" exit ${failed} |