Skip to content

Commit df87075

Browse files
idiotcultslachiewicz
authored andcommitted
Fix premature output of distribution URL
1 parent 7443d4e commit df87075

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • maven-wrapper-distribution/src/resources

maven-wrapper-distribution/src/resources/only-mvnw

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,17 @@ fi
170170

171171
mkdir -p -- "${MAVEN_HOME%/*}"
172172

173-
# Download and Install Apache Maven
174-
verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
175-
verbose "Downloading from: $distributionUrl"
176-
verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
177-
178173
# select .zip or .tar.gz
179174
if ! command -v unzip >/dev/null; then
180175
distributionUrl="${distributionUrl%.zip}.tar.gz"
181176
distributionUrlName="${distributionUrl##*/}"
182177
fi
183178

179+
# Download and Install Apache Maven
180+
verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
181+
verbose "Downloading from: $distributionUrl"
182+
verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
183+
184184
# verbose opt
185185
__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
186186
[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v

0 commit comments

Comments
 (0)