summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mirror.sh11
1 files 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}