mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
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:
parent
a991935088
commit
4fa1730cdd
1 changed files with 3 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue