aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xplatform_tools/android/bin/android_setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh
index 5631e8e187..07ff3c5601 100755
--- a/platform_tools/android/bin/android_setup.sh
+++ b/platform_tools/android/bin/android_setup.sh
@@ -41,7 +41,7 @@ if [ -z "$ANDROID_SDK_ROOT" ]; then
if [ -z "$ANDROID_TOOL" ]; then
echo "ERROR: Please define ANDROID_SDK_ROOT in your environment to point"
echo " to a valid Android SDK installation."
- return 1
+ exit 1
fi
ANDROID_SDK_ROOT=$(cd $(dirname "$ANDROID_TOOL")/.. && pwd)
exportVar ANDROID_SDK_ROOT "$ANDROID_SDK_ROOT"