Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 8e02f4b

Browse files
ssh24Rajiv Nathan
authored and
Rajiv Nathan
committed
Fix exit code of run.sh when build script fails
Signed-off-by: ssh24 <[email protected]>
1 parent 31b34b4 commit 8e02f4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

run.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ else
5353
printf "\n\n${BLUE}BUILDING DOCKER IMAGES${RESET}\n\n";
5454

5555
./script/build.sh;
56+
EC=$?
5657

57-
if [ $? -ne 0 ]; then
58+
if [ $EC -ne 0 ]; then
5859
printf "\n${RED}FAILED TO BUILD\nExiting. $RESET";
59-
exit $?
60+
exit $EC
6061
else
6162
printf "\n${GREEN}ALL DOCKER IMAGES SUCCESSFULLY BUILT $RESET\n";
6263
fi

0 commit comments

Comments
 (0)