Index: build/android/adb_device_functions.sh |
diff --git a/build/android/adb_device_functions.sh b/build/android/adb_device_functions.sh |
index a8a0c8f56421218bb80c2d18039072ff1d88052f..66cc32fc4e398b03f605dcae9abfbb913c125891 100755 |
--- a/build/android/adb_device_functions.sh |
+++ b/build/android/adb_device_functions.sh |
@@ -42,7 +42,10 @@ adb_device_loop() { |
'adb shell cat /data/local.prop)"' |
return 1 |
fi |
- local DEVICES=$(adb_get_devices -b) |
+ local DEVICES=$(adb_get_devices) |
+ if [[ -z $DEVICES ]]; then |
+ return |
+ fi |
# Do not change DEVICE variable name - part of api |
for DEVICE in $DEVICES; do |
DEV_TYPE=$(adb -s $DEVICE shell getprop ro.product.device | sed 's/\r//') |