download CA cert for Nimble

This commit is contained in:
Ștefan Talpalaru 2021-02-26 01:34:21 +01:00
parent 79fa0d6367
commit 820aeaec8e
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ build_nim() {
build_all.sh > build_all_custom.sh
sh build_all_custom.sh
rm build_all_custom.sh
# Nimble needs a CA cert
rm -f bin/cacert.pem
curl -LsS -o bin/cacert.pem https://curl.se/ca/cacert.pem || echo "Warning: 'curl' failed to download a CA cert needed by Nimble. Ignoring it."
else
# Don't re-build it multiple times until we get identical
# binaries, like "build_all.sh" does. Don't build any tools