mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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
Notes:
sideshowbarker
2024-07-17 05:07:46 +09:00
Author: https://github.com/petelliott Commit: https://github.com/SerenityOS/serenity/commit/0994e6964b Pull-request: https://github.com/SerenityOS/serenity/pull/15791 Reviewed-by: https://github.com/gunnarbeutner
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,11 @@ buildstep() {
|
|||
else
|
||||
"$@"
|
||||
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() {
|
||||
|
|
Loading…
Reference in a new issue