[ALL] Update claude code
This commit is contained in:
+17
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user