#!/usr/bin/env bash # GoatCMS uninstaller for Linux / macOS set -euo pipefail TARGET="${1:-/usr/local/bin/goat}" if [ -f "${TARGET}" ]; then if [ -w "$(dirname "${TARGET}")" ]; then rm -f "${TARGET}" else sudo rm -f "${TARGET}" fi echo "Removed ${TARGET}" else echo "Not installed at ${TARGET}" fi