From 6e2db7934c3974b3895d1b41cf9963693d5b0bea Mon Sep 17 00:00:00 2001 From: Nomads_Reach <144523850+NomadsReach@users.noreply.github.com> Date: Sun, 16 Aug 2026 02:39:01 -0400 Subject: [PATCH] Fix C# test restore in Linux checks --- server/scripts/linux_compat_checks.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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."