Skip to content

Commit

Permalink
update regex conversions from blockscout updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdeep sidhu committed Oct 6, 2021
1 parent b27a3ad commit 95fed96
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cmd/puppeth/module_explorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,26 @@ ARG CSS_TERTIARY_DARK={{.CssTertiaryDark}}
ARG CSS_FOOTER_BACKGROUND={{.CssFooterBackground}}
ARG CSS_FOOTER_TEXT={{.CssFooterText}}
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/address/_balance_card.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/address/index.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/internal_transaction/_tile.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/layout/app.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/transaction/_pending_tile.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/views/wei_helpers.ex; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/priv/gettext/default.pot; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po; fi
RUN if [ "$COINNETWORK" != "" ]; then sed -i s/"Ether"/"${COINNETWORK}"/g apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex; fi
RUN if [ "$COINSYMBOL" != "" ]; then sed -i s/"ETH"/"${COINSYMBOL}"/g apps/block_scout_web/priv/gettext/default.pot; fi
RUN if [ "$COINSYMBOL" != "" ]; then sed -i s/"xDai"/"${COINSYMBOL}"/g apps/block_scout_web/priv/gettext/default.pot; fi
RUN if [ "$COINSYMBOL" != "" ]; then sed -i s/"ETH"/"${COINSYMBOL}"/g apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po; fi
RUN if [ "$COINSYMBOL" != "" ]; then sed -i s/"xDai"/"${COINSYMBOL}"/g apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po; fi
RUN if [ "$COINSYMBOL" != "" ]; then sed -i s/"xDai"/"${COINSYMBOL}"/g apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex; fi
RUN if [ "$COINSYMBOL" != "" ]; then sed -i s/"xDai"/"${COINSYMBOL}"/g apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex; fi
RUN if [ "$BLOCK_TRANSFORMER" == "base" ]; then sed -i s/"Validated"/"Mined"/g apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex; fi
Expand Down

0 comments on commit 95fed96

Please sign in to comment.