From eeaa2e6c64ee20940c89400e4268ea134f7126ce Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Aug 2026 03:34:57 +0000 Subject: [PATCH] Accept plain "remove"/"uninstall" as aliases for --remove MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ./setup.sh filebrowser remove (no dashes) fell through to the normal install dispatch instead of removing anything, since only the --remove flag form was recognized. Accept the bare words too — order-independent either way (./setup.sh remove filebrowser works the same). Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01H4k6J1qXXyYxhGEgnJaMvn --- setup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index e0c5eae..e5d19e1 100755 --- a/setup.sh +++ b/setup.sh @@ -13,9 +13,11 @@ # --dry-run preview actions without making changes # --unattended use defaults, no prompts (pair with explicit service names) # --remove remove instead of install (pair with a service name, e.g. -# ./setup.sh filebrowser --remove) — stops/removes its -# containers, its Caddy site block (if any), any UFW rule -# tagged for it, and optionally its ~/docker/ directory +# ./setup.sh filebrowser --remove, or the plain word "remove"/ +# "uninstall" works too: ./setup.sh filebrowser remove) — +# stops/removes its containers, its Caddy site block (if +# any), any UFW rule tagged for it, and optionally its +# ~/docker/ directory # # Every service lives in services/.sh, registers itself with # register_service, and defines install_. Adding a service = adding one @@ -46,7 +48,7 @@ for arg in "$@"; do --unattended) UNATTENDED=true ;; --list|-l) DO_LIST=true ;; --status) DO_STATUS=true ;; - --remove) DO_REMOVE=true ;; + --remove|remove|uninstall) DO_REMOVE=true ;; --version|-V) cat "$HERE/VERSION" 2>/dev/null || echo "unknown"; exit 0 ;; -h|--help) sed -n '2,18p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; exit 0 ;; -*) echo "Unknown flag: $arg" >&2; exit 1 ;;