summaryrefslogtreecommitdiff
path: root/home/xyz/.local
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-01-10 09:28:30 -0800
committerXiao Pan <gky44px1999@gmail.com>2024-01-10 09:28:30 -0800
commit06e958aca64a129032163f53beb0eb89b79294a8 (patch)
treecb5ea61c175ae4284d9f1f2a2beddcc8b745b1b6 /home/xyz/.local
parent0bde381043dec1bf827e8fb786c195f0affea687 (diff)
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.
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-xhome/xyz/.local/bin/upd2
1 files changed, 1 insertions, 1 deletions
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