From 20211ed6bf27bab269e422d0f6769f6ae2813c88 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Sep 2016 15:38:06 -0700 Subject: [PATCH] test: grep versions with --sort --- test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test b/test index 83bc814e0..4088bb54e 100755 --- a/test +++ b/test @@ -90,7 +90,7 @@ function grpcproxy_pass { function release_pass { # to grab latest patch release; bump this up for every minor release - UPGRADE_VER=$(git tag -l | grep v3.0 | tail -1) + UPGRADE_VER=$(git tag -l --sort=-version:refname "v3.0.*" | head -1) if [ -n "$MANUAL_VER" ]; then # in case, we need to test against different version UPGRADE_VER=$MANUAL_VER