Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1939)

Unified Diff: build/android/adb_device_functions.sh

Issue 10963054: Make adb_device_loop return if no devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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//')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698