v1
This commit is contained in:
Executable
+17
@@ -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."
|
||||
Reference in New Issue
Block a user