diff options
author | EuAndreh <eu@euandre.org> | 2022-10-28 11:09:11 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-10-28 11:10:08 -0300 |
commit | 802cbbd057d2f0ee03aa3332f130208fcb8a20ce (patch) | |
tree | 8fbf05820c791493fd6d5aaa70408e820b9adf33 /bin/update | |
parent | bin/repos: Only print the repository name, not its type (diff) | |
download | dotfiles-802cbbd057d2f0ee03aa3332f130208fcb8a20ce.tar.gz dotfiles-802cbbd057d2f0ee03aa3332f130208fcb8a20ce.tar.xz |
bin/update: Replace while block with xargs
Diffstat (limited to 'bin/update')
-rwxr-xr-x | bin/update | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |