From c9e7e9964ae9fa098570829777be3167d6a680df Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 21 Apr 2024 03:18:31 -0700 Subject: only insp install rustup, all others uninstall or rustc --- sh/upd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/upd') diff --git a/sh/upd b/sh/upd index f6077af..e3101c8 100755 --- a/sh/upd +++ b/sh/upd @@ -160,7 +160,7 @@ pac () { pacout="$(sudo pacman --noconfirm -Syu | tee /dev/tty)" pacpacs="$(echo "$pacout" | grep -m1 '^Packages' | cut -d' ' -f3-)" # Update rust toolchains before paru so paru can compile things in newest rust if needed. - [ "$hostname" != xyzca ] && rustup update + [ "$hostname" = xyzinsp ] && rustup update aurout="$(paru --color never --noconfirm -aSu --ignore libredwg-git | tee /dev/tty)" aurpacs="$(echo "$aurout" | grep '^Aur' | cut -d' ' -f3-)" # /usr/share/libalpm/hooks/rebuild-detector.hook has a line `NeedsTargets` shows it maybe checkrebuild only upgraded packages by `printf 'zoom\nminiconda3' | checkrebuild` instead of maybe check all by `checkrebuild`, so I think query pacman hook will be faster than run another `checkrebuild` -- cgit v1.2.3-70-g09d2