diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-12-28 11:28:00 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-12-28 11:28:00 +0000 |
commit | e3155caa0f2b264d8d696c4f0a9af1e6242ac39a (patch) | |
tree | 488a16d60d70d33ee2a8e322f2b161773aded634 /home | |
parent | 6e6eaa956376e1d58bbc204ebeac8a5c9b6760b2 (diff) |
perf: Maybe improve performance, need tests
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.local/bin/upd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index c1490a9b..b07262b1 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -28,10 +28,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 |