summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2015-12-28 10:52:00 -0600
committerSteve Kondik <shade@chemlab.org>2016-01-02 02:15:01 -0800
commit52254723807e94bbb9353bab5ded3cfa488573aa (patch)
tree30b09c41a76bf7d60d61d1723872ef7d84e16e3f
parent87171a8db7e0cbba8169a2176fe3f30b8787690b (diff)
downloadandroid_development-stable/cm-13.0-ZNH0E.tar.gz
android_development-stable/cm-13.0-ZNH0E.tar.bz2
android_development-stable/cm-13.0-ZNH0E.zip
gdbclient: fix adb output teststable/cm-13.0-ZNH0E
M adb produces an error message when no devices are connected. The test for length needs to be quoted. Change-Id: I39566d3bf7b65dbdcb49942afb3076b77e206e48
-rwxr-xr-xscripts/gdbclient2
1 files changed, 1 insertions, 1 deletions
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