From 52254723807e94bbb9353bab5ded3cfa488573aa Mon Sep 17 00:00:00 2001 From: Scott Mertz Date: Mon, 28 Dec 2015 10:52:00 -0600 Subject: gdbclient: fix adb output test M adb produces an error message when no devices are connected. The test for length needs to be quoted. Change-Id: I39566d3bf7b65dbdcb49942afb3076b77e206e48 --- scripts/gdbclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdbclient b/scripts/gdbclient index 7f24f6ca5..8ff9ae9c6 100755 --- a/scripts/gdbclient +++ b/scripts/gdbclient @@ -14,7 +14,7 @@ source $ANDROID_BUILD_TOP/build/envsetup.sh function adb_get_product_device() { local candidate=`adb shell getprop ro.product.device | tr -d '\r\n'` - if [ -z $candidate ]; then + if [ -z "$candidate" ]; then candidate=`adb shell getprop ro.hardware | tr -d '\r\n'` fi echo $candidate -- cgit v1.2.3