Last active
May 8, 2016 17:21
-
-
Save jokester/e019686450f40ddfce4523513404c2d9 to your computer and use it in GitHub Desktop.
Update headless android sdk
This file contains hidden or 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 | |
set -e | |
if [[ -d "$ANDROID_HOME" ]]; then | |
cd "$ANDROID_HOME" | |
elif [[ -f "$(dirname "$0")/tools/android" ]]; then | |
cd "$(dirname "$0")" | |
else | |
echo "FAILED: Cannot find ANDROID_HOME/tools/android" | |
exit 1 | |
fi | |
# --filter: Accepted values are: [add-on, doc, extra, platform, platform-tool, sample, source, system-image, tool] | |
exec tools/android update sdk --no-ui --filter extra,platform,platform-tool,tool,add-on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment