diff --git a/install/download_avro_tools.sh b/install/download_avro_tools.sh index c4bd6994..7fdc2f19 100755 --- a/install/download_avro_tools.sh +++ b/install/download_avro_tools.sh @@ -80,7 +80,7 @@ if [ "$version" = "latest" ]; then grep -Eo "$version_regex" | sed 's|[[:space:]]*$||; s|^.*>||; s|/$||' )" - version="$(sort -n <<< "$versions" | head -n 1)" + version="$(sort -Vr <<< "$versions" | head -n 1)" timestamp "Determined latest Avro Tools version to be $version" fi