diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-12-28 02:50:16 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-12-28 02:50:16 -0800 |
commit | 32efa85ba7891384a6f6c2edcd3d97443915f9c0 (patch) | |
tree | 046cc3beb0c24407130d78c78b7bfc845fcc0068 /home/xyz/.local | |
parent | bb8dead82e7af3049f51a8fb9c2465217cbd8ba4 (diff) |
perf: Maybe improve performance, need tests
Diffstat (limited to 'home/xyz/.local')
-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 2510b4c3..1eabae66 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -91,10 +91,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 --ignore libredwg-git | tee /dev/tty | grep '^Aur' | cut -d' ' -f3-)" + aurpacs="$(paru --noconfirm -aSu --ignore libredwg-git | 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 |