From 313ea64cbb927604d90e9173c4318bd7a5ca265c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 21 Oct 2022 14:53:56 -0300 Subject: bin/update: Combine `repos` and `vcs` to fetch updates from repositories Remove FIXME marker. --- bin/update | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin/update') diff --git a/bin/update b/bin/update index 7ec5bd8..9eda076 100755 --- a/bin/update +++ b/bin/update @@ -76,5 +76,10 @@ wait rfc -u newsboat -x reload -# FIXME -# mr -j "$N_PROC" fetch # git pull for all repos under ~/dev/ +repos -e ~/dev/go/ -e ~/dev/quicklisp/ -e ~/dev/archive/ ~/dev/ | + while read -r line; do + TYPE="$(echo "$line" | cut -d: -f1)" + DIR="$( echo "$line" | cut -d: -f2-)" + cd "$DIR" + vcs "$TYPE" fetch || printf 'Failed to fetch repository: %s.\n' "$DIR" >&2 + done -- cgit v1.2.3