diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-04-21 03:18:31 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-04-21 03:18:31 -0700 |
commit | c9e7e9964ae9fa098570829777be3167d6a680df (patch) | |
tree | ee790d34bfa76def5ac99fa7a778fc990ef2d1c0 | |
parent | a059d13a01b693493140e72ae109cbb7d89ae647 (diff) |
only insp install rustup, all others uninstall or rustc
-rwxr-xr-x | sh/upd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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` |