summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorLiping Ke <liping.ke@intel.com>2011-02-22 05:36:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-21 17:53:51 +0000
commit7537f44a498860c08f613544e5f40fe2f24adaa8 (patch)
treea9c7bdb169c21470023c271b6730741f8f34b99a /meta/recipes-devtools
parent6148562de22b374ea52ee4f8fcabc9e72a3c1ff5 (diff)
downloadpoky-7537f44a498860c08f613544e5f40fe2f24adaa8.tar.gz
ADT: Fix check_result script cond comparison bug
When meeting errors, the return number can't be directly compared with -1. Actually, it might be represented as 255. The correct way is to compared it with 0. If the result is non-zero number, we meet error. This patch is for fixing [BUGID #742] Signed-off-by: Liping Ke <liping.ke@intel.coom>
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 4b88feea5a..9be7517272 100644
--- a/meta/recipes-devtools/installer/adt-installer/scripts/util
+++ b/meta/recipes-devtools/installer/adt-installer/scripts/util
@@ -84,14 +84,14 @@ done
84 84
85check_result() 85check_result()
86{ 86{
87 result="$?" 87 result=$?
88 if [ "$result" == "-1" ]; then 88 if [ $result -eq 1 ]; then
89 exit -1
90 elif [ $result -ne 0 ]; then
89 echo_info "\n#############################################################################" 91 echo_info "\n#############################################################################"
90 echo_info "# Meet error(s) when installing Yocto ADT! Please check log file for details. " 92 echo_info "# Meet error(s) when installing Yocto ADT! Please check log file for details. "
91 echo_info "#############################################################################\n" 93 echo_info "#############################################################################\n"
92 exit -1 94 exit -1
93 elif [ "$result" == "1" ]; then
94 exit -1
95 fi 95 fi
96} 96}
97 97