From 3e6c99851a6dc903181a138a26aa1d95ec932969 Mon Sep 17 00:00:00 2001 From: "Illuminatus [CCIO]" Date: Wed, 7 Aug 2024 13:58:13 -0700 Subject: [PATCH] Use status code greater than 200 --- 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 5da99abba..9039bcd5e 100644 --- a/scripts/cnode-helper-scripts/mithril.library +++ b/scripts/cnode-helper-scripts/mithril.library @@ -153,7 +153,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" -ge 400 ]]; then + if [[ "$status_code" -gt 200 ]]; then NODE_MINIMUM_VERSION="" else NODE_MINIMUM_VERSION=$(jq -r ".${NETWORK_NAME,,}.\"cardano-minimum-version\".\"mithril-signer\"" "$response_file")