diff --git a/README.md b/README.md index 318e4020..e5a9643b 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,6 @@ codeman web # Open http://localhost:3000 — press Ctrl+Enter to start your first session ``` -**Update to latest version:** -```bash -curl -fsSL https://raw.githubusercontent.com/Ark0N/Codeman/master/install.sh | bash -s update -``` -
Run as a background service diff --git a/install.sh b/install.sh index febebab5..2eb0d07e 100755 --- a/install.sh +++ b/install.sh @@ -1355,5 +1355,12 @@ uninstall() { case "${1:-}" in update) update ;; uninstall) uninstall ;; - *) main "$@" ;; + *) + if [[ -z "${1:-}" && -d "$INSTALL_DIR/.git" ]]; then + print_banner + update + else + main "$@" + fi + ;; esac