We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f619d32 commit 9e1d6cfCopy full SHA for 9e1d6cf
script/upgrades.sh
@@ -545,11 +545,14 @@ function prepare_state() {
545
546
valdir=$validators_dir/.akash${cnt}
547
548
- valjson=$(cat "$valdir/validator.json")
+ valjsonfile="$valdir/validator.json"
549
+
550
if [[ $cnt -gt 0 ]]; then
551
if [[ $($semver compare "$akashversion" v1.0.0-rc0) -ge 0 ]]; then
- $AKASH tx staking create-validator "$valjson" --home="$rvaldir" --from="validator$cnt" --yes
552
+ $AKASH tx staking create-validator "$valjsonfile" --home="$rvaldir" --from="validator$cnt" --yes
553
else
554
+ valjson=$(cat "$valjsonfile")
555
556
$AKASH tx staking create-validator \
557
--home="$rvaldir" \
558
--moniker="$(jq -rc '.moniker' <<<"$valjson")" \
0 commit comments