From 06e958aca64a129032163f53beb0eb89b79294a8 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 10 Jan 2024 09:28:30 -0800 Subject: workaround paru regression or fix my script bug Maybe paru regression version 2.0.1 cause `paru -aSu | tee /dev/tty > a` output colored output break my upd grep script, expected not colored output because I pipe to things. see `pacman -Qs linux --color=auto | tee /dev/tty > a` shows uncolored output but `paru -Qs linux --color=auto | tee /dev/tty > a` shows colored output. Or maybe pacman is wrong, maybe pipe to /dev/tty maybe is considered as output to tty. --- home/xyz/.local/bin/upd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'home') diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 9031c2a8..7784a9cc 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -94,7 +94,7 @@ pac () { 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 -m1 '^Aur' | cut -d' ' -f3-)" + aurpacs="$(paru --color never --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 -- cgit v1.2.3-70-g09d2