Skip to content

Commit 42717a7

Browse files
committed
[KYUUBI #4247][FOLLOWUP] Fix build/mvn version comparison
1 parent 68cc0e4 commit 42717a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/mvn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ install_mvn() {
7676
fi
7777
# See simple version normalization: http://stackoverflow.com/questions/16989598/bash-comparing-version-numbers
7878
function version { echo "$@" | awk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'; }
79-
if [ $(version $MVN_DETECTED_VERSION) -eq $(version $MVN_VERSION) ]; then
79+
if [ $(version $MVN_DETECTED_VERSION) -ne $(version $MVN_VERSION) ]; then
8080
local APACHE_MIRROR=${APACHE_MIRROR:-'https://archive.apache.org/dist/'}
8181

8282
install_app \

0 commit comments

Comments
 (0)