From 721b9d442587a71c73ca4c1dd6c19923a10d255f Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:20:30 +1100 Subject: [PATCH] Update cardano-signer release artefact name to use x64, and update case for ADA in env file --- scripts/cnode-helper-scripts/env | 2 +- scripts/cnode-helper-scripts/guild-deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cnode-helper-scripts/env b/scripts/cnode-helper-scripts/env index f669ffeec..7ccef65d4 100644 --- a/scripts/cnode-helper-scripts/env +++ b/scripts/cnode-helper-scripts/env @@ -372,7 +372,7 @@ formatAsset() { # Description : Convert number in Ada to Lovelace # : $1 = Amount in Ada, decimal number accepted (using dot) -AdaToLovelace() { +ADAToLovelace() { [[ -z $1 ]] && return 1 if validateDecimalNbr $1; then echo "$1 * 1000000 / 1" | bc # /1 is to remove decimals from bc command diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index bae5e489a..3e0b247b7 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -501,7 +501,7 @@ download_cardanosigner() { csigner_asset_url="$(curl -s https://api.github.com/repos/gitmachtl/cardano-signer/releases/latest | jq -r '.assets[].browser_download_url')" csigner_release_url="" while IFS= read -r release; do - if [[ -z ${ARCH##*x86_64*} && ${release} = *linux-amd64.tar.gz ]]; then # Linux x64 + if [[ -z ${ARCH##*x86_64*} && ${release} = *linux-x64.tar.gz ]]; then # Linux x64 csigner_release_url=${release}; break fi done <<< "${csigner_asset_url}"