mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-08 13:30:47 -05:00
scripts: testing rustup
in update-all
This commit is contained in:
parent
990a1bfc2d
commit
bd096b28be
1 changed files with 12 additions and 1 deletions
|
@ -11,8 +11,12 @@ alias zigup='zigup --install-dir "${HOME}/.local/share/zigup" --path-link "${HOM
|
|||
|
||||
updates=$(checkupdates)
|
||||
aur_updates=$(paru -Qua)
|
||||
rust_has_update=$(rustup check | grep -c 'Update')
|
||||
|
||||
if [ "$updates" = "" ] && [ "$aur_updates" = "" ]; then
|
||||
if [ "$updates" = "" ] \
|
||||
&& [ "$aur_updates" = "" ] \
|
||||
&& [ "$rust_has_update" -eq 0 ];
|
||||
then
|
||||
echo "System is already up to date."
|
||||
exit 0
|
||||
fi
|
||||
|
@ -20,6 +24,13 @@ fi
|
|||
river_has_update=$(echo "$aur_updates" | grep -c 'river-git')
|
||||
zls_has_update=$(echo "$aur_updates" | grep -c 'zls-git')
|
||||
|
||||
|
||||
if [ "$rust_has_update" -ne 0 ]; then
|
||||
rustup update
|
||||
else
|
||||
echo "$rust_has_update"
|
||||
fi
|
||||
|
||||
if [ "$river_has_update" -ne 0 ] && [ "$zls_has_update" -ne 0 ]; then
|
||||
zigup 0.13.0
|
||||
paru -Syu river-git --ignore zls-git
|
||||
|
|
Loading…
Reference in a new issue