summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-12-28 02:50:16 -0800
committerXiao Pan <gky44px1999@gmail.com>2023-12-28 03:25:22 -0800
commitc2d5af004a8294f0f96c6de9a645a52545e4cecb (patch)
tree8ca2d0cd6465f37e084f49d9be5acf0cf77fc86a /home
parent6278903c10dc580076110306ad405f9738c72c34 (diff)
perf: Maybe improve performance, need tests
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/upd5
1 files changed, 3 insertions, 2 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd
index 6e6c3e26..7011c68c 100755
--- a/home/xyz/.local/bin/upd
+++ b/home/xyz/.local/bin/upd
@@ -56,9 +56,10 @@ misc () {
}
pac () {
- pacpacs="$(sudo pacman --noconfirm -Syu | tee /dev/tty | grep '^Packages' | cut -d' ' -f3-)"
+ pacpacs="$(sudo pacman --noconfirm -Syu | tee /dev/tty | grep -m1 '^Packages' | cut -d' ' -f3-)"
+ # Update rust toolchains before paru so paru can compile things in newest rust if needed.
rustup update
- aurpacs="$(paru --noconfirm -aSu | tee /dev/tty | grep '^Aur' | cut -d' ' -f3-)"
+ aurpacs="$(paru --noconfirm -aSu | tee /dev/tty | grep -m1 '^Aur' | cut -d' ' -f3-)"
# part steal from aur comment
# sometimes "ERROR: Failure while downloading": https://github.com/neovim/neovim/issues/15709
# echo 1, printf 1 and yes 1 all works? not sure why