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:
parent
e724a1c496
commit
299137f39d
1 changed files with 1 additions and 1 deletions
|
@ -761,7 +761,7 @@ function repodiff() {
|
|||
function _adb_connected {
|
||||
{
|
||||
if [[ "$(adb get-state)" == device &&
|
||||
"$(adb shell test -e /sbin/recovery; echo $?)" == 0 ]]
|
||||
"$(adb shell test -e /sbin/recovery; echo $?)" != 0 ]]
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue