summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/installer/adt-installer/scripts/util8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer/scripts/util b/meta/recipes-devtools/installer/adt-installer/scripts/util
index 4b88feea5..9be751727 100644
--- a/meta/recipes-devtools/installer/adt-installer/scripts/util
+++ b/meta/recipes-devtools/installer/adt-installer/scripts/util
@@ -84,14 +84,14 @@ done
check_result()
{
- result="$?"
- if [ "$result" == "-1" ]; then
+ result=$?
+ if [ $result -eq 1 ]; then
+ exit -1
+ elif [ $result -ne 0 ]; then
echo_info "\n#############################################################################"
echo_info "# Meet error(s) when installing Yocto ADT! Please check log file for details. "
echo_info "#############################################################################\n"
exit -1
- elif [ "$result" == "1" ]; then
- exit -1
fi
}