aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-21 14:53:56 -0300
committerEuAndreh <eu@euandre.org>2022-10-21 14:53:59 -0300
commit313ea64cbb927604d90e9173c4318bd7a5ca265c (patch)
tree2f39569b6e6b90343521d418115efa5a13619da1 /bin
parentbin/vcs: Add initial version of VCS compatibility utility (diff)
downloaddotfiles-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-xbin/update9
1 files changed, 7 insertions, 2 deletions
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