commit 4511fa1e7f27a871b36841aa869bbe16c25edb82 parent 97c96ed9f720101f3009dd1d50d73549ccfcfd46 Author: Ashymad <czilukim@o2.pl> Date: Fri, 27 Apr 2018 11:05:37 +0200 Improve vcsync Diffstat:
| M | fish/.config/fish/functions/aur-vcsync.fish | | | 12 | +++--------- |
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/fish/.config/fish/functions/aur-vcsync.fish b/fish/.config/fish/functions/aur-vcsync.fish @@ -4,18 +4,12 @@ function aur-vcsync msg1 "Checking newest commit of repositories..." aur srcver ~/.cache/aurutils/sync/*-$vcs_list > /tmp/vcs.tmp msg1 "Comparing to locally installed versions..." - set updates (aur vercmp -p /tmp/vcs.tmp -d custom-aur) + set updates (aur vercmp -p /tmp/vcs.tmp -d custom-aur | awk '{print $1}' | sed 's/:$//') if test -z "$updates" msg3 "There is nothing to do" exit end - for update in $updates - echo Updating $update... - aur sync --no-ver \ - --repo custom-aur \ - (echo $update \ - | awk '{print $1}' \ - | sed 's/:$//') - end + msg1 "Updating $updates" + aur sync --no-ver --repo custom-aur $updates end