File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ if [ -z "${EXTRACT_LOCATION}/second/${ARTIFACT_NAME}" ]; then
4040 echo " ❌ Second Artifact Not found: ${ARTIFACT_NAME} could not be found under ${EXTRACT_LOCATION} /second/${ARTIFACT_NAME} "
4141 exit 1;
4242else
43- echo " ✅ Second Artifact Found @ ${EXTRACT_LOCATION} /first /${ARTIFACT_NAME} "
43+ echo " ✅ Second Artifact Found @ ${EXTRACT_LOCATION} /second /${ARTIFACT_NAME} "
4444fi
4545
4646rm -rf " ${EXTRACT_LOCATION} /firstArtifact" || true
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ set -euo pipefail
2121
2222PROJECT_NAME=' grails-spring-security'
2323RELEASE_TAG=$1
24- DOWNLOAD_LOCATION=" ${2:- downloads } "
24+ DOWNLOAD_LOCATION=" ${2:- . } "
2525DOWNLOAD_LOCATION=$( realpath " ${DOWNLOAD_LOCATION} " )
2626
2727if [ -z " ${RELEASE_TAG} " ]; then
@@ -61,7 +61,16 @@ java -version
6161
6262echo " Bootstrap Gradle ..."
6363cd " ${DOWNLOAD_LOCATION} /${PROJECT_NAME} /gradle-bootstrap"
64- gradlew
64+
65+ if GRADLE_CMD=" $( command -v gradlew 2> /dev/null) " ; then
66+ : # found the wrapper on PATH
67+ elif GRADLE_CMD=" $( command -v gradle 2> /dev/null) " ; then
68+ : # fall back to system-wide Gradle
69+ else
70+ echo " ERROR: Neither gradlew nor gradle found on \$ PATH." >&2
71+ exit 1
72+ fi
73+ ${GRADLE_CMD}
6574echo " ✅ Gradle Bootstrapped"
6675
6776echo " Applying License Audit ..."
You can’t perform that action at this time.
0 commit comments