From fc0ab5feb5acd097575e8bb733db53beff233f55 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 9 Jun 2024 03:28:21 +0300 Subject: [PATCH] Update 'update.sh' --- update.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index cdc05cf..b2eb884 100644 --- a/update.sh +++ b/update.sh @@ -1,12 +1,13 @@ #!/bin/bash -if [ "$#" -ne 2 ]; then - echo "Usage: $0 " +if [ "$#" -ne 3 ]; then + echo "Usage: $0 " exit 1 fi WALLET_ADDRESS=$1 PRIVATE_KEY=$2 +RPC_URL=$3 # Список файлов FILES=( @@ -18,4 +19,5 @@ for FILE in "${FILES[@]}"; do EXPANDED_FILE=$(eval echo "$FILE") sed -i "s/###WALLET_ADDRESS###/$WALLET_ADDRESS/g" "$EXPANDED_FILE" sed -i "s/###PRIVATE_KEY###/$PRIVATE_KEY/g" "$EXPANDED_FILE" + sed -i "s/###RPC_URL###/$RPC_URL/g" "$EXPANDED_FILE" done