Update 'update.sh'

This commit is contained in:
vvzvlad 2024-06-09 03:32:34 +03:00
parent fc0ab5feb5
commit 781cb24d36

View File

@ -9,7 +9,7 @@ WALLET_ADDRESS=$1
PRIVATE_KEY=$2 PRIVATE_KEY=$2
RPC_URL=$3 RPC_URL=$3
# Список файлов # List of files
FILES=( FILES=(
"./projects/hello-world/container/config.json" "./projects/hello-world/container/config.json"
"./projects/hello-world/contracts/Makefile" "./projects/hello-world/contracts/Makefile"
@ -17,7 +17,7 @@ FILES=(
for FILE in "${FILES[@]}"; do for FILE in "${FILES[@]}"; do
EXPANDED_FILE=$(eval echo "$FILE") EXPANDED_FILE=$(eval echo "$FILE")
sed -i "s/###WALLET_ADDRESS###/$WALLET_ADDRESS/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|###PRIVATE_KEY###|$PRIVATE_KEY|g" "$EXPANDED_FILE"
sed -i "s/###RPC_URL###/$RPC_URL/g" "$EXPANDED_FILE" sed -i "s|###RPC_URL###|$RPC_URL|g" "$EXPANDED_FILE"
done done