script: fix wrong exit location 45/251045/1
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 7 Jan 2021 06:30:45 +0000 (15:30 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 7 Jan 2021 06:30:45 +0000 (15:30 +0900)
Fix wrong exit location.
When using same config with previous config, it doesn't build and
immediately exit.

Change-Id: Idbc58c24fc7bd20863aee2e6d75d2e296a1d26cd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
build-amlogic.sh

index b700898..6fd8517 100755 (executable)
@@ -172,8 +172,8 @@ else
                        if [ "z${CHECK_ODROID}" = "z" ]; then
                                echo "There is local .config, but it is differen from ${BOARD}."
                                echo "Please try after removing .config."
+                               exit
                        fi
-                       exit
                else
                        if [ "z${CHECK_ODROID}" != "z" ]; then
                                echo "There is local .config, but it is differen from ${BOARD}."