only honor one install-set option -- fixes multiple installs.

This commit is contained in:
Eric House 2012-07-01 16:03:02 -07:00
parent 2434d85684
commit 43e8205fd8

View file

@ -15,10 +15,10 @@ DEVICES="$(adb devices | grep 'device$' | awk '{print $1}')"
while [ $# -ge 1 ]; do
case $1 in
-e)
DEVICES="$DEVICES $(adb devices | grep '^emulator' | awk '{print $1}')"
DEVICES="$(adb devices | grep '^emulator' | awk '{print $1}')"
;;
-d)
DEVICES="$DEVICES $(adb devices | grep -v emulator | grep 'device$' | awk '{print $1}')"
DEVICES="$(adb devices | grep -v emulator | grep 'device$' | awk '{print $1}')"
;;
-p)
[ $# -gt 1 ] || usage "-p requires an argument"