diff options
author | xyz <gky44px1999@gmail.com> | 2021-10-30 03:06:36 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-10-30 03:06:36 -0700 |
commit | 458eede32b7eced693134392647638ba47f4bbca (patch) | |
tree | 1c15ac48a505491c989288403d5ff7e1ea0a38be /home/xyz/.local | |
parent | c3ff4d9e094e1380b4c480edc7c65308119c50a7 (diff) |
upd get updated packages info, need test
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-x | home/xyz/.local/bin/upd | 7 |
1 files 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" |