Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/homelab/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homelab",
"displayName": "Homelab",
"version": "0.2.2",
"version": "0.2.3",
"author": {
"name": "4nrry",
"url": "https://github.com/4nrry"
Expand Down
10 changes: 8 additions & 2 deletions plugins/homelab/skills/tarball-installer/scripts/tarball-install
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Desinstalar: tarball-install --uninstall <app>
set -euo pipefail

SCRIPT_VERSION=1.5
SCRIPT_VERSION=1.6

die() { echo "error: $*" >&2; exit 1; }
info() { echo ":: $*"; }
Expand Down Expand Up @@ -253,7 +253,13 @@ if [ -n "$UNINSTALL" ]; then
app="$UNINSTALL"
[ -d "$PREFIX/$app" ] || die "not installed in $PREFIX/$app (use --system if it was installed in /opt)"
$SUDO rm -rf "$PREFIX/$app" "$BINDIR/$app" "$APPDIR/$app.desktop"
$SUDO find "$ICONDIR/hicolor" -name "$app.png" -o -name "$app.svg" 2>/dev/null | while read -r f; do $SUDO rm -f "$f"; done
# Sem o diretório hicolor (app instalado sem ícone num HOME novo) o find
# sai com erro, e sob pipefail isso derrubava o script aqui — depois de já
# ter apagado tudo, sem a mensagem e sem atualizar os caches.
if [ -d "$ICONDIR/hicolor" ]; then
$SUDO find "$ICONDIR/hicolor" \( -name "$app.png" -o -name "$app.svg" \) 2>/dev/null \
| while read -r f; do $SUDO rm -f "$f"; done || true
fi
refresh_caches
info "removed: $app (profiles/configs in ~/.config and ~/.$app are left untouched)"
exit 0
Expand Down
Loading