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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user