#!/bin/sh
set -e
ROOT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
PAYLOAD_DIR="$ROOT_DIR/build/payload"
TARGET="$PAYLOAD_DIR/hisolnk"
if [ ! -x "$TARGET" ]; then
  printf '%s\n' "Missing $TARGET. Build first with: ./scripts/build_all.sh" >&2
  exit 1
fi
exec "$TARGET" "$@"
