From 6496736625792fa327404316c22c8de6191c65cf Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 22 Feb 2012 13:01:00 -0800 Subject: [PATCH] take .apk file as optional param --- xwords4/android/scripts/install_all.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xwords4/android/scripts/install_all.sh b/xwords4/android/scripts/install_all.sh index 50f6993f8..4aa3d20f6 100755 --- a/xwords4/android/scripts/install_all.sh +++ b/xwords4/android/scripts/install_all.sh @@ -6,7 +6,7 @@ APK=./bin/XWords4-debug.apk usage() { [ $# -ge 1 ] && echo "Error: $1" - echo "usage: $(basename $0) [-e] [-d]" + echo "usage: $(basename $0) [-e] [-d] [-p /path/to/.apk]" exit 1 } @@ -22,6 +22,11 @@ while [ $# -ge 1 ]; do -d) DEVICES="$DEVICES $(adb devices | grep -v emulator | grep 'device$' | awk '{print $1}')" ;; + -p) + [ $# -gt 1 ] || usage "-p requires an argument" + shift + APK=$1 + ;; *) usage ;;