Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android-gadget-setup: fix conditional argument to assign serial variable
Change the conditional argument to check if androidserial is non-empty. The condition `[ -n ]` ussed is an incomplete conditional test. In bash and similar shells, `[ -n ]` without a string following `-n` is considered a syntax error. /usr/bin/android-gadget-setup starts with `set -e` is used to change behavior of the shell in various ways. `-e` option causes the shell to exit as soon a command exits with a non-zero status. The syntax error in `[ -n ]` causes the script to step and hence, android-tools-adbd service doesn't start. Signed-off-by: Chirag Jain <[email protected]>
- Loading branch information