Skip to content

Commit

Permalink
ch delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Nov 16, 2023
1 parent 6bec14d commit ebeb4d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/upgrade_csc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ if [[ -z "$PARENTCHAIN_URL" ]]; then
echo "PARENTCHAIN_URL not specified"
exit 1
else
cat network.config.json | sed -e "s/\"xdcparentnet\".*/\"xdcparentnet\": \"$PARENTCHAIN_URL\",/" > temp.json
cat network.config.json | sed -e "s@\"xdcparentnet\".*@\"xdcparentnet\": \"$PARENTCHAIN_URL\",@" > temp.json
mv temp.json network.config.json
fi

if [[ -z "$SUBNET_URL" ]]; then
echo "SUBNET_URL not specified"
exit 1
else
cat network.config.json | sed -e "s/\"xdcsubnet\".*/\"xdcsubnet\": \"$SUBNET_URL\",/" > temp.json
cat network.config.json | sed -e "s@\"xdcsubnet\".*@\"xdcsubnet\": \"$SUBNET_URL\",@" > temp.json
mv temp.json network.config.json
fi

Expand Down

0 comments on commit ebeb4d4

Please sign in to comment.