#!/usr/bin/env sh
DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
BIN="$DIR/clawtunnel-bin"
if [ ! -x "$BIN" ]; then
  echo "clawtunnel-bin missing or not executable" >&2
  exit 127
fi
exec "$BIN" "$@"
status=$?
echo "clawtunnel-bin exited with status $status" >&2
exit "$status"
