From 781cb24d361a2b179bd74bc78ba880198ac478bb Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 9 Jun 2024 03:32:34 +0300 Subject: [PATCH] Update 'update.sh' --- update.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update.sh b/update.sh index b2eb884..de308c6 100644 --- a/update.sh +++ b/update.sh @@ -9,7 +9,7 @@ WALLET_ADDRESS=$1 PRIVATE_KEY=$2 RPC_URL=$3 -# Список файлов +# List of files FILES=( "./projects/hello-world/container/config.json" "./projects/hello-world/contracts/Makefile" @@ -17,7 +17,7 @@ FILES=( 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" + 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