From 9a0b52d442959235ea6ed919d367aebb56e2aef1 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 31 Dec 2023 20:07:10 +0100 Subject: Hot-fixed failures due to refused connections --- mirror.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/mirror.sh b/mirror.sh index 49a3057..d3bb652 100644 --- a/mirror.sh +++ b/mirror.sh @@ -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} -- cgit v1.1