Skip to content

Commit

Permalink
Execute command without peco if serial number is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
tomorrowkey committed Sep 28, 2015
1 parent 1f76da0 commit 3e5464c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/adb_peco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e5464c

Please sign in to comment.