#!/bin/bash

if command -v bun >/dev/null 2>&1; then
    exec bun dist/index.js "$@"
elif command -v node >/dev/null 2>&1; then
    exec node dist/index.js "$@"
else
    echo "Neither Bun nor Node.js is installed."
    exit 1
fi