Skip to content

Commit

Permalink
fix: remove-double-qoutes-in-script
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Jun 4, 2024
1 parent 6db296c commit a1f66db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subgraph/scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function update() #hardhatNetwork #graphNetwork #dataSourceIndex #contract

# Set the ABIs path for this Hardhat network
abiIndex=0
for f in "$(yq e .dataSources[$dataSourceIndex].mapping.abis[].file subgraph.yaml -o json -I 0 | jq -sr '.[]')"
for f in $(yq e .dataSources[$dataSourceIndex].mapping.abis[].file subgraph.yaml -o json -I 0 | jq -sr '.[]')
do
f2=$(echo "$f" | sed "s|\(.*\/deployments\/\).*\/|\1$hardhatNetwork\/|")
yq -i ".dataSources[$dataSourceIndex].mapping.abis[$abiIndex].file=\"$f2\"" "$SCRIPT_DIR"/../subgraph.yaml
Expand All @@ -40,7 +40,7 @@ function updateTemplates() #hardhatNetwork #templateIndex #contract

# Set the ABIs path for this Hardhat network
abiIndex=0
for f in "$(yq e .templates[$templateIndex].mapping.abis[].file subgraph.yaml -o json -I 0 | jq -sr '.[]')"
for f in $(yq e .templates[$templateIndex].mapping.abis[].file subgraph.yaml -o json -I 0 | jq -sr '.[]')
do
f2=$(echo "$f" | sed "s|\(.*\/deployments\/\).*\/|\1$hardhatNetwork\/|")
yq -i ".templates[$templateIndex].mapping.abis[$abiIndex].file=\"$f2\"" "$SCRIPT_DIR"/../subgraph.yaml
Expand Down

0 comments on commit a1f66db

Please sign in to comment.