diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/installer/adt-installer/scripts/util | 8 |
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 | ||
85 | check_result() | 85 | check_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 | ||