Set up bash environment only if we weren't already in a terminal
Set up bash environment only if we weren't already in a terminal

If we're running generate-dynamic-macros from a terminal (e.g. from run.sh) we just use the inherited environment. But if we're running from a Gradle script invoked by Android Studio we still need to set up the environment.

Test Plan: Build Android twice, once via the Run button in Android Studio and once via run.sh

fbshipit-source-id: 021dd1d

exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent