#!/usr/bin/env bash
# Launcher that executes the downloaded Maravilla CLI binary in this package
set -euo pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BIN="$DIR/maravilla"
if [ "$(uname -s)" = "MINGW64_NT" ] || [ "$(uname -s)" = "MSYS_NT" ] || [ "$(uname -s)" = "CYGWIN_NT" ]; then
  BIN="$DIR/maravilla.exe"
fi
exec "$BIN" "$@"
