diff --git a/server/scripts/linux_compat_checks.sh b/server/scripts/linux_compat_checks.sh index dfdcc8b..bc23b08 100755 --- a/server/scripts/linux_compat_checks.sh +++ b/server/scripts/linux_compat_checks.sh @@ -20,24 +20,19 @@ if grep -RInE --exclude-dir=.git --exclude='*.md' --exclude='PORT_TROUBLESHOOTIN exit 1 fi -echo "==> Checking start.sh line endings" +echo "==> Checking shell scripts" if LC_ALL=C grep -n $'\r' start.sh >/dev/null 2>&1; then echo "ERROR: start.sh contains CR/CRLF line endings" >&2 exit 1 fi - chmod +x start.sh fix-port.sh -test -x start.sh bash -n start.sh bash -n fix-port.sh - -if command -v shellcheck >/dev/null 2>&1; then - shellcheck start.sh fix-port.sh -fi +if command -v shellcheck >/dev/null 2>&1; then shellcheck start.sh fix-port.sh; fi command -v dotnet >/dev/null 2>&1 || { echo "ERROR: dotnet SDK is required" >&2; exit 1; } dotnet --info dotnet build CommonwealthOnline.Server.csproj -c Release --nologo -dotnet run --project tests/CommonwealthOnline.Server.Tests.csproj -c Release --no-restore +dotnet run --project tests/CommonwealthOnline.Server.Tests.csproj -c Release echo "All C# Linux compatibility checks passed."