Update 'update.sh'
This commit is contained in:
parent
fc0ab5feb5
commit
781cb24d36
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user