ci: only end current section if there is a current section

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31939>
This commit is contained in:
Eric Engestrom
2024-10-26 04:34:00 +02:00
committed by Marge Bot
parent a991935088
commit 4fa1730cdd

View File

@@ -31,7 +31,9 @@ function error {
RED="\e[0;31m"
ENDCOLOR="\e[0m"
# we force the following to be not in a section
_section_end $CURRENT_SECTION
if [ -n "${CURRENT_SECTION:-}" ]; then
_section_end $CURRENT_SECTION
fi
CURR_MINSEC=$(get_current_minsec)
echo -e "\n${RED}[${CURR_MINSEC}] ERROR: $*${ENDCOLOR}\n"