piston/packages/dotnet/5.0.201/run

26 lines
531 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# Put instructions to run the runtime
2021-03-20 03:17:55 +01:00
export DOTNET_CLI_HOME=$PWD
case "${PISTON_LANGUAGE}" in
basic.net)
;&
fsharp.net)
;&
csharp.net)
shift
dotnet bin/Debug/net5.0/$(basename $(realpath .)).dll "$@"
;;
fsi)
FILENAME=$1
rename 's/$/\.fsx/' $FILENAME # Add .fsx extension
shift
dotnet $FSI_PATH $FILENAME.fsx "$@"
;;
*)
echo "How did you get here? (${PISTON_LANGUAGE})"
exit 1
;;
esac