From 3e5464c6135ece3ebadeefb3fca880539b12c552 Mon Sep 17 00:00:00 2001 From: tomorrowkey Date: Mon, 28 Sep 2015 18:36:05 +0900 Subject: [PATCH] Execute command without peco if serial number is not necessary --- bin/adb_peco.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/adb_peco.sh b/bin/adb_peco.sh index 55bca93..ee0a8ce 100755 --- a/bin/adb_peco.sh +++ b/bin/adb_peco.sh @@ -12,6 +12,14 @@ if [ $# -eq 1 ]; then fi fi +if [ $2 == 'version' ]; then + echo 'adb-peco version 1.1.0' +fi + +case $2 in + 'devices'| 'version' | 'help' | 'connect' | 'disconnect' | 'wait-for-device' | 'start-server' | 'kill-server' ) $1 ${@:2}; exit;; +esac + count=`adb devices | sed '/^$/d' | wc -l` if [ $count -eq 1 ]; then