uninstall.sh (563B)
1 #!/usr/bin/env bash 2 # Remove the Valentine binary. Leaves your config (~/.config/valentine/) in place 3 # by default — pass --purge to remove themes, presets, and settings too. 4 set -euo pipefail 5 6 BIN_DIR="${VALENTINE_BIN_DIR:-$HOME/.local/bin}" 7 CONFIG_DIR="$HOME/.config/valentine" 8 9 rm -f "$BIN_DIR/valentine" && echo "✓ removed $BIN_DIR/valentine" 10 11 if [[ "${1:-}" == "--purge" ]]; then 12 rm -rf "$CONFIG_DIR" && echo "✓ removed $CONFIG_DIR (themes, presets, settings)" 13 else 14 echo " kept $CONFIG_DIR (themes/presets/settings). Use --purge to remove it." 15 fi