.dotfiles/.local/bin/dotnet-run

15 lines
191 B
Bash
Executable File

#!/bin/bash
if [ -z "$1" ]
then
echo "No argument supplied"
exit 1
fi
dotnet build "$1"
clear
if [ $# -eq 1 ]; then
dotnet run --project "$1"
else
dotnet run --project "$@"