Created
January 20, 2012 02:51
-
-
Save thisgeek/1644669 to your computer and use it in GitHub Desktop.
Install on Android Devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APK=$1 | |
if [ ! -f `which adb` ]; then | |
echo 'You need to install the Android SDK before running this script.'; | |
exit; | |
fi | |
if [ ! -c $APK ]; then | |
echo 'Please provide an .apk file to install.' | |
else | |
for d in `adb devices | ack -o '^\S+\t'`; do | |
adb -s $d install -r $APK; | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment