This commit is contained in:
2026-05-21 18:42:57 +03:00
parent 716407f78a
commit b2ead3cf15
10 changed files with 179 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
set -euo pipefail
echo "This will remove the nnm container and /usr/local/bin/nnm."
read -rp "Are you sure? [y/N] " confirm
[[ "$confirm" =~ ^[yY] ]] || { echo "Aborted."; exit 0; }
echo "==> Removing container..."
distrobox rm --force nnm 2>/dev/null || true
echo "==> Removing image..."
podman image rm localhost/nnm:* 2>/dev/null || true
echo "==> Removing /usr/local/bin/nnm..."
sudo rm -f /usr/local/bin/nnm
echo "==> nnm uninstalled."