#!/bin/bash

set -euo pipefail

# Keep the separately installed AI Watch bundle intact; only the full CLI
# onedir belongs to this package.
TARGET_VOLUME="${3:?missing installer target volume}"
RUNLAYER_BUNDLE="${TARGET_VOLUME%/}/usr/local/lib/runlayer/runlayer"

rm -rf "$RUNLAYER_BUNDLE"
