From bcd4ca41c6275e741f3c35867b311f93ba18cfd1 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Tue, 8 Nov 2022 22:03:33 +0100 Subject: [PATCH] homebrew.sh -add a test to not proceed any bash upgrade. --- plugins.d/homebrew.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins.d/homebrew.sh b/plugins.d/homebrew.sh index 479b4c3..aae6e0b 100755 --- a/plugins.d/homebrew.sh +++ b/plugins.d/homebrew.sh @@ -240,6 +240,11 @@ if [ -n "$upd_pkg_notpinned" ]; then if [ "$choice" == "y" ] || [ "$choice" == "Y" ] || [ "$choice" == "a" ] || [ "$choice" == "A" ]; then for i in $upd_pkg_notpinned; do + if [ "$i" == "bash" ]; then + echo -e "\nBash update available !" + echo -e "You should run ${bold}brew upgrade bash${reset} in another terminal !\n" + continue + fi if [ "$choice" == "y" ] || [ "$choice" == "Y" ]; then echo "$i" | xargs -p -n 1 brew upgrade elif [ "$choice" == "a" ] || [ "$choice" == "A" ]; then