X-Git-Url: https://git.ao2.it/android/android-app-development-getting-started.git/blobdiff_plain/9354fc104e07d2754593e22a4f4cb3a6bc344400..45d03c74a2e279801440bc35594e69ed985c4e44:/setenv?ds=sidebyside diff --git a/setenv b/setenv index e5c51a5..004eee1 100644 --- a/setenv +++ b/setenv @@ -1,6 +1,8 @@ #!/bin/sh -[ "$0" = "$(basename $SHELL)" ] || { echo "This script is meant to be sourced, not executed" 1>&2; exit 1; } +[ "${0#-}" = "$(basename $SHELL)" ] || { echo "This script is meant to be sourced, not executed" 1>&2; exit 1; } -export ANDROID_HOME=$HOME/Android/android-sdk-linux +ANDROID_BASE_DIR=$HOME/Android + +export ANDROID_HOME=$ANDROID_BASE_DIR/android-sdk-linux export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools