#!/usr/bin/env bash
# Install the runtime, then put `gptbridge` on PATH.
set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DEST_BIN="${DEST_BIN:-${HOME}/.local/bin}"

"${ROOT}/install.sh"

mkdir -p "$DEST_BIN"
ln -sfn "${ROOT}/bin/gptbridge" "${DEST_BIN}/gptbridge"
echo "bootstrap: gptbridge -> ${DEST_BIN}/gptbridge"
