From e3155caa0f2b264d8d696c4f0a9af1e6242ac39a Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 28 Dec 2023 11:28:00 +0000 Subject: perf: Maybe improve performance, need tests --- home/xyz/.local/bin/upd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'home/xyz') 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 -- cgit v1.2.3-70-g09d2