diff options
author | EuAndreh <eu@euandre.org> | 2022-10-21 14:53:56 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-10-21 14:53:59 -0300 |
commit | 313ea64cbb927604d90e9173c4318bd7a5ca265c (patch) | |
tree | 2f39569b6e6b90343521d418115efa5a13619da1 /bin | |
parent | bin/vcs: Add initial version of VCS compatibility utility (diff) | |
download | dotfiles-313ea64cbb927604d90e9173c4318bd7a5ca265c.tar.gz dotfiles-313ea64cbb927604d90e9173c4318bd7a5ca265c.tar.xz |
bin/update: Combine `repos` and `vcs` to fetch updates from repositories
Remove FIXME marker.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |