From 17dbe6efdb445159fe31e7a081a21edd9dd54bfc Mon Sep 17 00:00:00 2001 From: Scitz0 Date: Fri, 24 May 2024 17:51:03 +0200 Subject: [PATCH 1/2] update check fix --- scripts/cnode-helper-scripts/mithril.library | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/mithril.library b/scripts/cnode-helper-scripts/mithril.library index 4a471ef18..a61b69c33 100644 --- a/scripts/cnode-helper-scripts/mithril.library +++ b/scripts/cnode-helper-scripts/mithril.library @@ -29,7 +29,7 @@ set_node_minimum_version() { if [[ "$status_code" -eq 404 ]]; then NODE_MINIMUM_VERSION="" else - NODE_MINIMUM_VERSION=$(jq -r ".${NETWORK}.\"cardano-minimum-version\".\"mithril-signer\"" "$response_file") + NODE_MINIMUM_VERSION=$(jq -r ".${NETWORK_NAME,,}.\"cardano-minimum-version\".\"mithril-signer\"" "$response_file") fi rm -f "$response_file" } From 4cc4f09acab1569e1c747ffb7bff7fa11ab7fd69 Mon Sep 17 00:00:00 2001 From: Scitz0 Date: Fri, 24 May 2024 17:52:14 +0200 Subject: [PATCH 2/2] broader error check --- scripts/cnode-helper-scripts/mithril.library | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/mithril.library b/scripts/cnode-helper-scripts/mithril.library index a61b69c33..4b92b7647 100644 --- a/scripts/cnode-helper-scripts/mithril.library +++ b/scripts/cnode-helper-scripts/mithril.library @@ -26,7 +26,7 @@ set_node_minimum_version() { response_file=$(mktemp) status_code=$(curl -s -o "$response_file" -w "%{http_code}" https://raw.githubusercontent.com/input-output-hk/mithril/${MITHRIL_LATEST_VERSION}/networks.json) - if [[ "$status_code" -eq 404 ]]; then + if [[ "$status_code" -ge 400 ]]; then NODE_MINIMUM_VERSION="" else NODE_MINIMUM_VERSION=$(jq -r ".${NETWORK_NAME,,}.\"cardano-minimum-version\".\"mithril-signer\"" "$response_file")