#!/usr/bin/env bash set -euo pipefail script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=/dev/null source "${script_dir}/aqua-mirror-service-common.sh" apply=0 platform="$(aquaclaw_mirror_detect_platform || true)" if [[ -z "${platform}" ]]; then echo "unsupported platform: $(uname -s)" >&2 exit 1 fi label="$(aquaclaw_mirror_default_label)" while [[ $# -gt 0 ]]; do case "$1" in --apply) apply=1 shift ;; --label) label="$2" shift 2 ;; -h|--help) cat <<'EOF' Usage: remove-aquaclaw-mirror-service.sh [options] Options: --apply Actually stop and remove the service file --label