Version 0.0.1 #2

Merged
dguiducci merged 42 commits from main into release 2026-07-22 14:44:42 +01:00
2 changed files with 16 additions and 1 deletions
Showing only changes of commit cff860499e - Show all commits
+6
View File
@@ -48,6 +48,12 @@ curl -fsSL https://builds.skaldagent.net/install.sh | bash
Or, after installation: `~/.local/share/skald-circle/uninstall.sh` Or, after installation: `~/.local/share/skald-circle/uninstall.sh`
## Bug fix: uninstall.sh fails on Docker-owned files in homes/ ✅
**Problem**: `uninstall.sh` runs `rm -rf "$INSTALL_DIR"` as the normal user, but `homes/` contains files created by Docker containers running under different UIDs (often root). The removal fails with "Permission denied" on those files, leaving a broken install behind.
**Fix**: if `rm -rf` fails (non-zero exit), the script retries with `sudo rm -rf`. If even sudo fails, it prints an error message and exits non-zero so the user knows manual cleanup is needed.
### From source ### From source
```sh ```sh
+10 -1
View File
@@ -97,7 +97,16 @@ esac
# ── Remove installation directory ───────────────────────────────────────────── # ── Remove installation directory ─────────────────────────────────────────────
if [ -d "$INSTALL_DIR" ]; then if [ -d "$INSTALL_DIR" ]; then
info "🗑️ Removing installation directory …" info "🗑️ Removing installation directory …"
rm -rf "$INSTALL_DIR" rm -rf "$INSTALL_DIR" 2>/dev/null || {
warn "Some files are owned by other users (e.g. from Docker sandboxes)."
info "🔐 Retrying with sudo …"
sudo rm -rf "$INSTALL_DIR"
}
if [ -d "$INSTALL_DIR" ]; then
err "Failed to remove ${INSTALL_DIR} even with sudo."
err "You may need to manually remove it."
exit 1
fi
info "✔ Removed ${INSTALL_DIR}" info "✔ Removed ${INSTALL_DIR}"
else else
warn "Installation directory not found: ${INSTALL_DIR}" warn "Installation directory not found: ${INSTALL_DIR}"