From e999f104e74039b291070af435a494a88eb7d704 Mon Sep 17 00:00:00 2001 From: kg Date: Fri, 8 Dec 2017 07:52:52 +0800 Subject: [PATCH] Update adb (#6472) --- plugins/adb/_adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/adb/_adb b/plugins/adb/_adb index 2e3c3658..8cbf6593 100644 --- a/plugins/adb/_adb +++ b/plugins/adb/_adb @@ -48,8 +48,8 @@ _arguments \ case "$state" in specify_device) - _values 'devices' $(adb devices|awk 'NR>1&& $1 ~ /^[a-zA-Z0-9].*$/ \ - {printf "%s[Device_%d:%s] ",$1,++i,$2 }') + _values 'devices' $(adb devices -l|awk 'NR>1&& $1 ~ /^[a-zA-Z0-9].*$/ \ + {printf "%s[%s] ",$1,$6 }') return ;; esac