Skip to content

Commit 93b023a

Browse files
author
Lucas McDonald
committed
update expr
1 parent c83d8a5 commit 93b023a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test_vector_handlers/scripts/install_mpl_test_vector_runner.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
# Change to the directory of the script
88
cd "$(dirname "$0")"
99

10-
# Get MPL version specified in requirements.txt
11-
export mplVersion=$(grep 'aws-cryptographic-material-providers==' ../requirements_mpl.txt | sed -E 's/.*==(.+)/\1/')
10+
# Get highest MPL version specified in requirements.txt
11+
# export mplVersion=$(grep 'aws-cryptographic-material-providers==' ../requirements_mpl.txt | sed -E 's/.*==//' | tr ',' '\n' | sed -E 's/^[^0-9]*//' | sort -V | tail -n1)
12+
# Get lowest MPL version specified in requirements.txt
13+
export mplVersion=$(grep 'aws-cryptographic-material-providers==' ../requirements_mpl.txt | sed -E 's/.*==//' | tr ',' '\n' | sed -E 's/^[^0-9]*//' | sort -V | head -n1)
1214

1315
# Clone MPL repo to get test vectors runner source code and the Dafny version to use
1416
git clone --branch v$mplVersion --recurse-submodules https://github.com/aws/aws-cryptographic-material-providers-library.git

0 commit comments

Comments
 (0)