Skip to content

Instantly share code, notes, and snippets.

@glombard
Last active August 29, 2015 14:11
Show Gist options
  • Save glombard/b2d2cbdab2fa0416e9dd to your computer and use it in GitHub Desktop.
Save glombard/b2d2cbdab2fa0416e9dd to your computer and use it in GitHub Desktop.
Find missing Android emulator system images
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