Last active
August 29, 2015 14:11
-
-
Save glombard/b2d2cbdab2fa0416e9dd to your computer and use it in GitHub Desktop.
Find missing Android emulator system images
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
DIRS=$(find ~/.android/avd -name '*ini' | xargs grep 'sysdir' | cut -d '=' -f 2) | |
IFS=$'\n' read -rd '' -a array <<< "$DIRS" | |
for d in "${array[@]}" | |
do | |
X="${ANDROID_HOME}/$d" | |
if [ ! -d $X ]; then | |
echo Missing emulator image: $X | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment