Update prereqs.sh to get proper version of binary files.

When test-network-k8s is called with a specific but not the last version of Fabric hyper-ledger and the binary files are not available into ./bin folder, the script always downloaded the last version of binary files.

Signed-off-by: amiramte <71940532+amiramte@users.noreply.github.com>
This commit is contained in:
amiramte 2024-05-01 14:01:55 +03:30 committed by GitHub
parent 2fa83c957a
commit d1c0fc7f7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ function check_prereqs() {
if [[ $? -ne 0 ]]; then
echo "Downloading LATEST Fabric binaries and config"
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/bootstrap.sh \
| bash -s -- -s -d
| bash -s -- ${FABRIC_VERSION} ${FABRIC_CA_VERSION} -s -d
# remove sample config files extracted by the installation script
rm config/configtx.yaml
@ -65,4 +65,4 @@ function check_prereqs() {
fi
set -e
}
}