Skip to content

Commit

Permalink
Use status code greater than 200
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorBenson committed Aug 7, 2024
1 parent 943f495 commit 3e6c998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/mithril.library
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3e6c998

Please sign in to comment.