summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMatt Cotter <matt.cotter@mongodb.com>2016-07-28 11:26:19 -0400
committerMatt Cotter <matt.cotter@mongodb.com>2016-08-01 18:53:44 -0400
commit4c8cae0a1eaf70dbb5db6b39926eeda5da0fed3e (patch)
treec7a207cd5b922f31cc1f1ab3d5dfff59ce38dc7c /etc
parent750754153357481e40c498f1def3371af79f2309 (diff)
downloadmongo-4c8cae0a1eaf70dbb5db6b39926eeda5da0fed3e.tar.gz
SERVER-22734 unify --version output, thus adding enterprise designations
Diffstat (limited to 'etc')
-rw-r--r--etc/evergreen.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 1cdc38a1569..59640cf177b 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -212,7 +212,7 @@ functions:
fi
bin_ver=$(${python|python} -c "import yaml; print(yaml.safe_load(open('compile_expansions.yml'))['version']);" | tr -d '[ \r\n]')
# Due to SERVER-23810, we cannot use $mongo_binary --quiet --nodb --eval "version();"
- mongo_ver=$($mongo_binary --version | cut -f2 -d ':' | tr -d '[ \r\n]')
+ mongo_ver=$($mongo_binary --version | perl -pe '/version v(.*)$/; $_ = $1;' | tr -d '[ \r\n]')
# The versions must match
if [ "$bin_ver" != "$mongo_ver" ]; then
echo "The mongo version is $mongo_ver, expected version is $bin_ver"