diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-12-28 11:28:21 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-12-28 11:28:21 +0000 |
commit | 580b641437d0d4b6069bae09dfb746255dd3ee58 (patch) | |
tree | f561879225de3dc7d25e21439527eb2cc570fcac | |
parent | 378780552dd95ef0e9da5a4cb968aa7c15113fbf (diff) |
perf: Maybe improve performance, need tests
-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 d9154983..adf4e70f 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -22,10 +22,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 |