Skip to content
Snippets Groups Projects
Commit 5f7fd3ed authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Android build: use existing gradle if found in the path

parent 04de878a
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ if [[ ! -d "${ANDROID_SDK_TOOLS_ROOT}" ]]; then
fi
# Install Gradle
if [[ ! -d "${GRADLE_HOME}" ]]; then
if [[ "_" == "_$(which gradle)" && ! -d "${GRADLE_HOME}" ]]; then
cd "${PROJECT_DIR}/scripts"
echo "Installing gradle... ${GRADLE_HOME}"
test -e "gradle-${GRADLE_VERSION}-all.zip" || wget -kL ${CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment