mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
Ports: Fix return statuses with new buildsteps
previously every buildstep would return a success error code. As a result, all the steps would run even if previous steps failed. I've also added a red status message when this happens.
This commit is contained in:
parent
03ae9f94cf
commit
0994e6964b
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,11 @@ buildstep() {
|
||||||
else
|
else
|
||||||
"$@"
|
"$@"
|
||||||
fi 2>&1 | sed $'s|^|\x1b[34m['"${port}/${buildstep_name}"$']\x1b[39m |'
|
fi 2>&1 | sed $'s|^|\x1b[34m['"${port}/${buildstep_name}"$']\x1b[39m |'
|
||||||
|
local return_code=${PIPESTATUS[0]}
|
||||||
|
if [ ${return_code} != 0 ]; then
|
||||||
|
echo -e "\x1b[1;31mError in step ${port}/${buildstep_name} (status=${return_code})\x1b[0m"
|
||||||
|
fi
|
||||||
|
return ${return_code}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildstep_intro() {
|
buildstep_intro() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue