commit | 63eabff2a952c413a33e1ef5a4a6554a73ee6181 | [log] [tgz] |
---|---|---|
author | Khalid Zubair <kzubair@cyngn.com> | Tue Feb 02 12:00:14 2016 -0800 |
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | Wed Feb 03 09:31:46 2016 -0800 |
tree | c1fc70919c4cece5f5a3ba544e26dd3a00350d13 | |
parent | 705e90f0903eed0fa2ea92e80b8a5f3f09630cb0 [diff] |
envsetup: dopush: fix error when device is not connected $(adb get-state) was unquoted and returns an empty string when no device is connected causing the if and until statements to be malformed. Fix quoting and refactor the test to a separate function. Change-Id: I2cfa0a7b2033e5a379cab2cae64ed57f5495dbed