diff options
author | JP Abgrall <jpa@google.com> | 2012-05-07 14:14:48 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2012-05-07 19:40:42 -0700 |
commit | 7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e (patch) | |
tree | a3122e414d9a8a4d0b022a59599136b8c3175b55 /bash_completion | |
parent | 7948189830a1437524a3596c82e3a5dc24e1e75b (diff) | |
download | sdk-7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e.zip sdk-7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e.tar.gz sdk-7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e.tar.bz2 |
adb bash completion: fix completion of "adb -s"
It would incorrectly quote '2>' which would end up passed to the
command.
Change-Id: I77ac112363efea4322910784355f3274dad44bab
Diffstat (limited to 'bash_completion')
-rw-r--r-- | bash_completion/adb.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion/adb.bash b/bash_completion/adb.bash index 12b36ef..46ed208 100644 --- a/bash_completion/adb.bash +++ b/bash_completion/adb.bash @@ -66,7 +66,7 @@ _adb() { COMPREPLY=( $(compgen -W "$OPTIONS $COMMAND" -- "$cur") ) ;; OPT_SERIAL_ARG) - local devices=$(command adb devices '2>' /dev/null | grep -v "List of devices" | awk '{ print $1 }') + local devices=$(command adb devices 2> /dev/null | grep -v "List of devices" | awk '{ print $1 }') COMPREPLY=( $(compgen -W "${devices}" -- ${cur}) ) ;; COMMAND) |