fixup! Fixed return status for tv and mobile build scripts.
authorSeungSeop Park <sns.park@samsung.com>
Wed, 22 Oct 2014 05:52:52 +0000 (14:52 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Previoulsy the build script build/build_mobile|tv.sh always returned 1.
This is because
- if GBS_RET is 0, [ "$GBS_RET" != "0" ] is evaluated to 1,
  which in turn becomes the return value of the script.
- if GBS_RET is 1, the script exits with the value of GBS_RET.

The solution is to exit with 0 at the end of script.
Reviewed by:  Antonio Gomes, mohan reddy, Kangil Han

Change-Id: I1647dfb3d63ca9b60ac2a7b77421540ef7108175
Signed-off-by: SeungSeop Park <sns.park@samsung.com>
tizen_src/build/build_mobile.sh
tizen_src/build/build_tv.sh

index 9db657d..1af4f5d 100755 (executable)
@@ -29,3 +29,4 @@ APPLY_PATCHES_RET=$?
 
 [ "$GBS_RET" != "0" ] && exit $GBS_RET
 [ "$APPLY_PATCHES_RET" != "0" ] && exit $APPLY_PATCHES_RET
+exit 0
index b46e983..4b4609e 100755 (executable)
@@ -30,3 +30,4 @@ APPLY_PATCHES_RET=$?
 
 [ "$GBS_RET" != "0" ] && exit $GBS_RET
 [ "$APPLY_PATCHES_RET" != "0" ] && exit $APPLY_PATCHES_RET
+exit 0