From fccdcdad27d5f73ec22cba63dab7f45053cef617 Mon Sep 17 00:00:00 2001 From: Arshavir Ter-Gabrielyan Date: Mon, 20 Nov 2023 19:33:34 +0100 Subject: [PATCH 1/2] first --- README.md | 4 ++-- generate_identities_for_neurons_fund_neurons.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba0d148..6fff387 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,9 @@ The `sns-testing` solution is based on Docker; however, there are subtle issues 0. Make sure you have Homebrew installed. * Instructions: https://brew.sh/ - * Use Homebrew to install `coreutils` (needed for tools e.g., `sha256sum`), `jq`, and `yq`: + * Use Homebrew to install (or upgrade to the latest available versions) `bash`, `coreutils` (needed for tools e.g., `sha256sum`), `jq`, and `yq`: ```bash - brew install coreutils jq yq + brew install bash coreutils jq yq ``` You also need rosetta that you can install by running: diff --git a/generate_identities_for_neurons_fund_neurons.sh b/generate_identities_for_neurons_fund_neurons.sh index 4dc9fee..15114cf 100755 --- a/generate_identities_for_neurons_fund_neurons.sh +++ b/generate_identities_for_neurons_fund_neurons.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -euo pipefail +set -xeuo pipefail cd -- "$(dirname -- "${BASH_SOURCE[0]}")" @@ -51,7 +51,7 @@ do # as they are freshly generated (because we need access to their DFX identities to # be able to read their data and manipulate them, e.g., adding them to the NF after # the NNS is installed). - sed -i "$((i+1))s/\(^30[0-9][0-9];\)[-a-z0-9]*;/\1${PRINCIPAL};/" "${NEURON_CSV}" + sed -i'' -e "$((i+1))s/\(^30[0-9][0-9];\)[-a-z0-9]*;/\1${PRINCIPAL};/" "${NEURON_CSV}" echo "Ensured the existence of Neurons' Fund neuron ID ${neuron_id} with identity principal = ${PRINCIPAL}" fi; done From e0cc5e04fd0c46cf9a740ea5f47a80f316607161 Mon Sep 17 00:00:00 2001 From: Arshavir Ter-Gabrielyan Date: Mon, 20 Nov 2023 19:36:43 +0100 Subject: [PATCH 2/2] Update generate_identities_for_neurons_fund_neurons.sh --- generate_identities_for_neurons_fund_neurons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_identities_for_neurons_fund_neurons.sh b/generate_identities_for_neurons_fund_neurons.sh index 15114cf..b1d801f 100755 --- a/generate_identities_for_neurons_fund_neurons.sh +++ b/generate_identities_for_neurons_fund_neurons.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -xeuo pipefail +set -euo pipefail cd -- "$(dirname -- "${BASH_SOURCE[0]}")"