summaryrefslogtreecommitdiff
path: root/home/xyz
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-10-30 03:06:36 -0700
committerxyz <gky44px1999@gmail.com>2021-10-30 03:06:36 -0700
commit458eede32b7eced693134392647638ba47f4bbca (patch)
tree1c15ac48a505491c989288403d5ff7e1ea0a38be /home/xyz
parentc3ff4d9e094e1380b4c480edc7c65308119c50a7 (diff)
upd get updated packages info, need test
Diffstat (limited to 'home/xyz')
-rwxr-xr-xhome/xyz/.local/bin/upd7
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"