Added ability to skip install of android SDK when running prerequisites script, and skip checking android config in setup_linux.sh

This commit is contained in:
John Whelan
2023-07-17 15:10:15 -07:00
parent 6ee389eb34
commit 9077161b14
2 changed files with 28 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ if [ "$(lsb_release -d | grep -qEi 'debian|buntu|mint')" ]; then
echo Not a supported Linux
exit 1
fi
read -p "Did you install Android SDK? Y/N " response
while true; do
case $response in
[yY] ) echo Checking android setup...;
# ensure ANDROID_SDK_ROOT is defined and exists
if [ -d "$ANDROID_SDK_ROOT" ]; then
@@ -68,7 +72,14 @@ else
echo 'adb is not available in the path'
exit 1
fi
break;;
[nN] ) echo Skipping android SDK config check...;
break;;
* ) echo invalid response;;
esac
done
# ensure rustup is installed
if command -v rustup &> /dev/null; then
echo '[X] rustup is available in the path'