This is an automated email from the ASF dual-hosted git repository. vongosling pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/rocketmq-docker.git
commit 8d999e6fead6bca46829ba12cd2f56638f802d09 Author: ShannonDing <[email protected]> AuthorDate: Tue Dec 3 21:11:08 2019 +0800 fix(dockerfile): update method to find the latest release version --- image-build/update.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/image-build/update.sh b/image-build/update.sh index 3982797..0678125 100755 --- a/image-build/update.sh +++ b/image-build/update.sh @@ -30,8 +30,7 @@ checkVersion() set -eu; # Update the image of the latest released version -# LATEST_VERSION=$(curl -s https://archive.apache.org/dist/rocketmq/ | grep -B1 "KEYS" | grep -v "KEYS" | awk -F '>' '{print $3}' | awk -F '/' '{print $1}') -LATEST_VERSION=$(curl -s https://archive.apache.org/dist/rocketmq/ | grep -B8 "KEYS" | grep -v "KEY" | grep -v "rocketmq" | tail -1 | awk -F '>' '{print $3}' | awk -F '/' '{print $1}') +LATEST_VERSION=$(curl -s https://archive.apache.org/dist/rocketmq/ | awk -F '>' '{print $3}' | awk -F '/' '{print $1}' | grep '^[0-9]' | sort | tail -1) checkVersion ${LATEST_VERSION}
