Skip to content

Commit

Permalink
Merge branch 'alpha' into guild-deploy-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt authored May 28, 2024
2 parents 1b86ca8 + 4cc4f09 commit 3a37578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cnode-helper-scripts/mithril.library
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ 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}.\"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"
}
Expand Down

0 comments on commit 3a37578

Please sign in to comment.