#!/usr/bin/sh
# locate the dotnet muxer: Microsoft RPMs install to /usr/share/dotnet,
# Fedora to /usr/lib/dotnet, everything else needs it on the PATH
for dotnet in /usr/share/dotnet/dotnet /usr/lib/dotnet/dotnet $(command -v dotnet 2>/dev/null); do
    [ -x "$dotnet" ] && exec "$dotnet" /usr/lib/cdgsharp/CDGSharp.CLI.dll "$@"
done
echo "cdgsharp: no .NET runtime found; install one with: opi dotnet" >&2
exit 127
