From 3ad734a877838240965ab5b950eb24cb67382d44 Mon Sep 17 00:00:00 2001 From: Brikaa Date: Fri, 8 Oct 2021 18:36:12 +0200 Subject: [PATCH] pkg(dotnet-5.0.201): Give separate compilation errors --- packages/dotnet/5.0.201/compile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/dotnet/5.0.201/compile b/packages/dotnet/5.0.201/compile index 1c34213..6af3762 100644 --- a/packages/dotnet/5.0.201/compile +++ b/packages/dotnet/5.0.201/compile @@ -7,6 +7,11 @@ export HOME=$PWD dotnet build --help > /dev/null # Shut the thing up +check_errors () { + grep -q 'error [A-Z]\+[0-9]\+:' check.txt && cat check.txt 1>&2 + rm check.txt +} + case "${PISTON_LANGUAGE}" in basic.net) rename 's/$/\.vb/' "$@" # Add .vb extension @@ -33,4 +38,5 @@ case "${PISTON_LANGUAGE}" in esac dotnet restore --source $DOTNET_ROOT/.nuget/packages -dotnet build --no-restore +dotnet build --no-restore | tee check.txt +check_errors