We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a145ef7 commit 990cfaeCopy full SHA for 990cfae
codebuild/bin/install_awslc.sh
@@ -27,15 +27,16 @@ fi
27
28
BUILD_DIR=$1
29
INSTALL_DIR=$2
30
+GH_RELEASE_URL="https://api.github.com/repos/aws/aws-lc/releases"
31
32
if [[ ! -f "$(which clang)" ]]; then
33
echo "Could not find clang"
34
exit 1
35
fi
36
-# Ask GitHub for the latest release.
37
-AWSLC_VERSION=$(curl --silent "https://api.github.com/repos/aws/aws-lc/releases/latest" | \
38
- grep -Po '"tag_name": "\K.*?(?=")')
+# Ask GitHub for the latest v1.x release.
+AWSLC_VERSION=$(curl --silent "$GH_RELEASE_URL" | \
39
+ grep -Po '"tag_name": "\Kv1.*?(?=")' |head -1)
40
41
mkdir -p "$BUILD_DIR"||true
42
cd "$BUILD_DIR"
0 commit comments