envsetup: dopush: fix test if device is in recovery

Change-Id: I1687b879e00918813886b2c9c54535376aa62d99
Signed-off-by: Marc K <morckx@gmail.com>
This commit is contained in:
Marc K 2016-10-20 10:27:10 +02:00 committed by Gerrit Code Review
parent e724a1c496
commit 299137f39d

View file

@ -761,7 +761,7 @@ function repodiff() {
function _adb_connected { function _adb_connected {
{ {
if [[ "$(adb get-state)" == device && if [[ "$(adb get-state)" == device &&
"$(adb shell test -e /sbin/recovery; echo $?)" == 0 ]] "$(adb shell test -e /sbin/recovery; echo $?)" != 0 ]]
then then
return 0 return 0
fi fi