Files
dockernecontainer/nnm/uninstall.sh
T
2026-05-21 18:42:57 +03:00

18 lines
458 B
Bash
Executable File

#!/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."