#!/usr/bin/env bash
set -euo pipefail
DIR="$(cd "$(dirname "$0")" && pwd)"
BIN="$DIR/lightningLauncher"
if [ ! -f "$BIN" ]; then
  echo "not found: $BIN"
  exit 1
fi
chmod +x "$BIN" 2>/dev/null || true
echo "starting: $BIN"
exec "$BIN"
