feat: auto-detect existing install and run update instead of fresh install

Re-running the install script now detects ~/.codeman/app/.git and
automatically updates instead of re-installing. Removes the separate
`bash -s update` instructions from README since it's no longer needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-03-12 15:09:37 +01:00
co-authored by Claude Opus 4.6
parent 625d4976d3
commit e7ee5595c5
2 changed files with 8 additions and 6 deletions
-5
View File
@@ -35,11 +35,6 @@ codeman web
# Open http://localhost:3000 — press Ctrl+Enter to start your first session # 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
```
<details> <details>
<summary><strong>Run as a background service</strong></summary> <summary><strong>Run as a background service</strong></summary>
+8 -1
View File
@@ -1355,5 +1355,12 @@ uninstall() {
case "${1:-}" in case "${1:-}" in
update) update ;; update) update ;;
uninstall) uninstall ;; uninstall) uninstall ;;
*) main "$@" ;; *)
if [[ -z "${1:-}" && -d "$INSTALL_DIR/.git" ]]; then
print_banner
update
else
main "$@"
fi
;;
esac esac