From f4d82c183b4a551bee829c7998cf94b72597a821 Mon Sep 17 00:00:00 2001 From: modehua Date: Sat, 14 Jan 2023 11:53:42 +0800 Subject: [PATCH] =?UTF-8?q?err=20=E9=80=80=E5=87=BA=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index be0413d..515c62c 100755 --- a/build.sh +++ b/build.sh @@ -8,6 +8,7 @@ script_dir=$(cd $(dirname $0);pwd) cd $script_dir echo $script_dir pwd +err=0 mainverstr=$(cat ../sdk/include/huagao/brand.h |grep VERSION_MAIN) mainverstr=${mainverstr: -3} mainverstr=$(echo $mainverstr) @@ -117,10 +118,13 @@ cmake ../code_device make if [ $? -ne 0 ];then - echo "--------------------------------------make fail---------------------------------------" - #exit 1 # commented, we should restore the CMakeLists.txts... + + err=1 + echo "--------------------------------------make fail---------------------------------------" + # commented, we should restore the CMakeLists.txts... else - echo "--------------------------------------make succeed------------------------------------" + err=0 + echo "--------------------------------------make succeed------------------------------------" fi #make @@ -138,3 +142,4 @@ if [ -f ../code_device/hgdriver/wrapper/CMakeLists.txtbkp ]; then pwd fi +exit $err \ No newline at end of file