123456789101112131415#!/usr/bin/env rc background=()for(repo in `{cat downstream}) { echo Updating $repo git -C $repo fetch --all --tags --prune --force & background=($apid $background)} for (i in $background) { wait $i} echo Done!