Skip to content

Instantly share code, notes, and snippets.

View emaleavil's full-sized avatar

Emanuel emaleavil

View GitHub Profile
@emaleavil
emaleavil / continuous_deploy.sh
Created November 5, 2015 12:41 — forked from anonymous/continuous_deploy.sh
A short script to perform auto install on multiple Android devices by watching a specific folder for an .apk write. Usage: ./continuous_deploy.sh com.example.package/.MainActivity
folder="bin/classes/"
package="$1"
inotifywait -m -q -e close_write "$folder" | while read f; do
# take only the filename
f=`awk '{print $3}' <<< "$f"`
# rebuild the full path
path="$folder$f"