From 4f4751062668489e247347005659c53459806125 Mon Sep 17 00:00:00 2001 From: Xavier Romero Date: Thu, 16 Jan 2025 10:26:25 +0100 Subject: [PATCH] Lint 0 --- scripts/upgrade_forkid.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade_forkid.sh b/scripts/upgrade_forkid.sh index 83a34075..1ff0effa 100755 --- a/scripts/upgrade_forkid.sh +++ b/scripts/upgrade_forkid.sh @@ -41,12 +41,11 @@ elif [ "$TARGET_FORKID" -eq "12" ]; then elif [ "$TARGET_FORKID" -eq "13" ]; then TAG_TARGET_FORKID=v8.1.0-rc.2-fork.13 fi -UPGRADED_PARAMS_FILE=".github/tests/combinations/fork${TARGET_FORKID}-new-cdk-stack-rollup.yml" PARAMS_FILE=".github/tests/combinations/fork${SOURCE_FORKID}-new-cdk-stack-rollup.yml" KURTOSIS_CONFIG=upgrade_from_${SOURCE_FORKID}_to_${TARGET_FORKID}_enclave_${STACK_NAME}.json -cp $PARAMS_FILE $KURTOSIS_CONFIG +cp "$PARAMS_FILE" "$KURTOSIS_CONFIG" sed -ni '/cdk_erigon_node_image/!p' "$KURTOSIS_CONFIG" echo " cdk_erigon_node_image: $ERIGON_IMAGE" >> "$KURTOSIS_CONFIG" @@ -203,7 +202,7 @@ echo # Check forkid on Sequencer FORKID=$SOURCE_FORKID -while [ $FORKID -ne $TARGET_FORKID ]; do +while [ "$FORKID" -ne "$TARGET_FORKID" ]; do FORKID=$(printf "%d" $(cast rpc --json --rpc-url $(kurtosis port print "$STACK_NAME" $SVC_SEQUENCER rpc) zkevm_getForkId | jq -r)) echo "Current Sequencer forkid: $FORKID" sleep 3 @@ -225,7 +224,7 @@ echo FORKID=$SOURCE_FORKID COUNTER=0 MAX_RETRIES=25 -while [ $FORKID -ne $TARGET_FORKID ]; do +while [ "$FORKID" -ne "$TARGET_FORKID" ]; do ((COUNTER++)) FORKID=$(printf "%d" $(cast rpc --json --rpc-url $(kurtosis port print "$STACK_NAME" $SVC_RPC rpc) zkevm_getForkId | jq -r)) echo "Current RPC forkid: $FORKID"