Skip to content

Commit

Permalink
Ensure that the activate script doesn't crash when the ANDROID_SDK_RO…
Browse files Browse the repository at this point in the history
…OT and ANDROID_HOME are not set

Because if we do `exit 1` and then `source setup/activate_native.sh` then the
bash terminal dies
  • Loading branch information
shankari committed Feb 11, 2023
1 parent 7e1c71e commit c67cdc6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion setup/activate_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ echo "Verifying $ANDROID_HOME or $ANDROID_SDK_ROOT is set"
if [ -z $ANDROID_HOME ] && [ -z $ANDROID_SDK_ROOT ];
then
echo "ANDROID_HOME and ANDROID_SDK_ROOT not set, android SDK not found"
exit 1
fi

echo "Activating sdkman, and by default, gradle"
Expand Down

0 comments on commit c67cdc6

Please sign in to comment.