From 38e8a9ed54f5e7aac93769b04caff2c9316434ab Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Sun, 5 Jul 2026 17:15:51 +0200 Subject: [PATCH] [ALL] Update claude code --- update_mac.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/update_mac.sh b/update_mac.sh index 54cfc72..138c6fa 100755 --- a/update_mac.sh +++ b/update_mac.sh @@ -50,14 +50,25 @@ function diagnostics { brew doctor brew missing } +function update_others { + echo "----------" + echo "Update other stuff" + echo "----------" + + if [ -x "$(command -v claude)" ]; then + echo "-- CLAUDE" + claude --update + fi +} + if [[ $* == *--help* ]]; then echo "Usage: $0 [option]" - echo "Default options: --brew-update --cleanup --diagnostics" - echo -e "Options:\n\t--brew-update\n\t--cleanup\n\t--diagnostics\n\t--permission-fix\n\t--system-update" + echo "Default options: --brew-update --update-others --cleanup --diagnostics" + echo -e "Options:\n\t--brew-update\n\t--update-others\n\t--cleanup\n\t--diagnostics\n\t--permission-fix\n\t--system-update" fi if [[ -z $* ]]; then - set -- "$*" "--brew-update --cleanup --diagnostics" + set -- "$*" "--brew-update --cleanup --diagnostics --update-others" fi if [[ $* == *--system-update* ]]; then @@ -66,6 +77,9 @@ fi if [[ $* == *--brew-update* ]]; then update_brew fi +if [[ $* == *--update-others* ]]; then + update_others +fi if [[ $* == *--cleanup* ]]; then cleanup fi