aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-28 11:09:11 -0300
committerEuAndreh <eu@euandre.org>2022-10-28 11:10:08 -0300
commit802cbbd057d2f0ee03aa3332f130208fcb8a20ce (patch)
tree8fbf05820c791493fd6d5aaa70408e820b9adf33 /bin
parentbin/repos: Only print the repository name, not its type (diff)
downloaddotfiles-802cbbd057d2f0ee03aa3332f130208fcb8a20ce.tar.gz
dotfiles-802cbbd057d2f0ee03aa3332f130208fcb8a20ce.tar.xz
bin/update: Replace while block with xargs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/update b/bin/update
index 2c7bba8..97bf50b 100755
--- a/bin/update
+++ b/bin/update
@@ -77,9 +77,4 @@ rfc -u
newsboat -x reload
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 'WARNING: Failed to fetch repository: %s.\n' "$DIR" >&2
- done
+ xargs -I% x vcs -C% fetch OR echo 'WARNING: Failed to fetch repository: %.' >&2