[ALL] Update claude code

This commit is contained in:
Fabian Ising
2026-07-05 17:15:51 +02:00
parent 75deb4987e
commit 38e8a9ed54
+17 -3
View File
@@ -50,14 +50,25 @@ function diagnostics {
brew doctor brew doctor
brew missing 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 if [[ $* == *--help* ]]; then
echo "Usage: $0 [option]" echo "Usage: $0 [option]"
echo "Default options: --brew-update --cleanup --diagnostics" echo "Default options: --brew-update --update-others --cleanup --diagnostics"
echo -e "Options:\n\t--brew-update\n\t--cleanup\n\t--diagnostics\n\t--permission-fix\n\t--system-update" 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 fi
if [[ -z $* ]]; then if [[ -z $* ]]; then
set -- "$*" "--brew-update --cleanup --diagnostics" set -- "$*" "--brew-update --cleanup --diagnostics --update-others"
fi fi
if [[ $* == *--system-update* ]]; then if [[ $* == *--system-update* ]]; then
@@ -66,6 +77,9 @@ fi
if [[ $* == *--brew-update* ]]; then if [[ $* == *--brew-update* ]]; then
update_brew update_brew
fi fi
if [[ $* == *--update-others* ]]; then
update_others
fi
if [[ $* == *--cleanup* ]]; then if [[ $* == *--cleanup* ]]; then
cleanup cleanup
fi fi