From 458eede32b7eced693134392647638ba47f4bbca Mon Sep 17 00:00:00 2001 From: xyz Date: Sat, 30 Oct 2021 03:06:36 -0700 Subject: upd get updated packages info, need test --- home/xyz/.local/bin/upd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index a2e25c09..0e5361d6 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -63,8 +63,8 @@ ncm () { } pac () { - sudo pacman --noconfirm -Syu - paru --noconfirm -aSyu + pacpacs="$(sudo pacman --noconfirm -Syu | tee /dev/tty | grep '^Packages' | cut -d' ' -f3-)" + aurpacs="$(paru --noconfirm -aSyu | tee /dev/tty | grep '^Aur' | cut -d' ' -f3-)" # part steal from aur comment # sometimes "ERROR: Failure while downloading": https://github.com/neovim/neovim/issues/15709 rm -rf ~/.cache/paru/clone/neovim-nightly-bin/ && yes 1 | PARU_PAGER=cat paru --rebuild --redownload neovim-nightly-bin @@ -110,3 +110,6 @@ else esac done fi + +printf 'updated pacman packages: %s\n'\ +'updated aur packages: %s\n' "$pacpacs" "$aurpacs" -- cgit v1.2.3-70-g09d2