X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fartifacts.sh;h=c11356109a4ab4eef0268c34c0a6c3e63e1533ca;hp=a403cfe005a77b4e9fb056b98874af5db92709b6;hb=a1e7653789cf39773b717bb8dda0400d4683c96e;hpb=89e6be275715aefa8473835eb78eed309f37f2ee diff --git a/resources/libraries/bash/function/artifacts.sh b/resources/libraries/bash/function/artifacts.sh index a403cfe005..c11356109a 100644 --- a/resources/libraries/bash/function/artifacts.sh +++ b/resources/libraries/bash/function/artifacts.sh @@ -98,7 +98,8 @@ function download_ubuntu_artifacts () { pkg_info=$(apt-cache show ${package}) || { die "apt-cache show on ${package} failed." } - ver=$(echo ${pkg_info} | grep -o "Version: ${VPP_VERSION-}[^ ]*") || true + ver=$(echo ${pkg_info} | grep -o "Version: ${VPP_VERSION-}[^ ]*" | \ + head -1) || true if [ -n "${ver-}" ]; then echo "Found '${VPP_VERSION-}' among '${package}' versions." ver=$(echo "$ver" | cut -d " " -f 2)