Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shollingsworth/18ca9db9a971e7acfafa7fc651b77a40 to your computer and use it in GitHub Desktop.
Save shollingsworth/18ca9db9a971e7acfafa7fc651b77a40 to your computer and use it in GitHub Desktop.
export a missing path if it doesn't exist. This prevents the path from being added over and over if you have a shell integration that auto sources some files
# add studio javac to path
if [[ ${PATH} != *"${ANDROID_SDK_ROOT}/bin"* ]]; then
export PATH="${ANDROID_SDK_ROOT}/jre/bin:${PATH}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment