From ff4683915869f948389bda319127aa5b37ada640 Mon Sep 17 00:00:00 2001 From: LSmyrnaios Date: Fri, 21 Jan 2022 15:45:12 +0200 Subject: [PATCH] Fix not prioritizing the gradle version defined inside the "installAndRun.sh" script. --- installAndRun.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installAndRun.sh b/installAndRun.sh index 774ce96d..1970b429 100755 --- a/installAndRun.sh +++ b/installAndRun.sh @@ -20,7 +20,7 @@ if [[ justInstall -eq 0 ]]; then #ls /opt/gradle/gradle-${gradleVersion} # For debugging installation fi - export PATH=$PATH:/opt/gradle/gradle-${gradleVersion}/bin + export PATH=/opt/gradle/gradle-${gradleVersion}/bin:$PATH gradle wrapper --gradle-version=${gradleVersion} --distribution-type=bin @@ -30,7 +30,7 @@ if [[ justInstall -eq 0 ]]; then gradle clean gradle build else - export PATH=$PATH:/opt/gradle/gradle-${gradleVersion}/bin # Make sure the gradle is still accessible (it usually isn't without the "export"). + export PATH=/opt/gradle/gradle-${gradleVersion}/bin:$PATH # Make sure the gradle is still accessible (it usually isn't without the "export"). fi gradle bootRun