From ada7ab40cdc1c4f183503ed10fcba34f1dda7552 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Thu, 23 Jul 2026 13:36:29 +0200 Subject: [PATCH] rustup update --- plugins.d/rustup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins.d/rustup.sh b/plugins.d/rustup.sh index f6c3b0f..7a075de 100755 --- a/plugins.d/rustup.sh +++ b/plugins.d/rustup.sh @@ -27,7 +27,12 @@ if hash rustup 2>/dev/null; then #check=$(echo "$check" | sed 's/Up\ to\ date/${bold}Up\ to\ dateee${reset}/g') #echo ${check/Up to date/\{greenbold\}Up to dateee\{reset\}\} #Update available - echo -e "$check" + echo -e "$check\n" + + if [[ "$check" =~ "update\ available" ]]; then + echo -e "šŸ¦€ ${underline}rustup update${reset}\n" + rustup update + fi #if [[ ! $(which rustup-init) =~ "homebrew" ]]; then # echo -e "\nšŸ¦€ ${underline}Upgrading rustup itself !${reset}\n"