Skip to content

Commit 9e1d6cf

Browse files
authored
fix(scripts): use path to validator.json instead of content after v1.0.0 (#2023)
Signed-off-by: Artur Troian <[email protected]> Co-authored-by: Artur Troian <[email protected]>
1 parent f619d32 commit 9e1d6cf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

script/upgrades.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,11 +545,14 @@ function prepare_state() {
545545

546546
valdir=$validators_dir/.akash${cnt}
547547

548-
valjson=$(cat "$valdir/validator.json")
548+
valjsonfile="$valdir/validator.json"
549+
549550
if [[ $cnt -gt 0 ]]; then
550551
if [[ $($semver compare "$akashversion" v1.0.0-rc0) -ge 0 ]]; then
551-
$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
552553
else
554+
valjson=$(cat "$valjsonfile")
555+
553556
$AKASH tx staking create-validator \
554557
--home="$rvaldir" \
555558
--moniker="$(jq -rc '.moniker' <<<"$valjson")" \

0 commit comments

Comments
 (0)