Verified Commit a05870ba authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

simplify sed

parent c02df3ea
Pipeline #29620 passed with stages
in 3 minutes and 31 seconds
...@@ -48,14 +48,9 @@ do ...@@ -48,14 +48,9 @@ do
ln -s ../../theme theme ln -s ../../theme theme
# add matomo # add matomo
if [[ -v matomoID ]]; then sed -i "/matomohead/r./.ci/analytics/head.html" theme/templates/_index.html
matomoTagOrig='<!-- matomohead -->' sed -i "/matomopolicy/r./.ci/analytics/policy.html" theme/templates/_index.html
sed -i '' "/${matomoTagOrig}/r./.ci/analytics/head.html" theme/templates/_index.html sed -i "/matomobanner/r./.ci/analytics/gdpr-banner.html" theme/templates/_index.html
matomoTagOrig='<!-- matomopolicy -->'
sed -i '' "/${matomoTagOrig}/r./.ci/analytics/policy.html" theme/templates/_index.html
matomoTagOrig='<!-- matomobanner -->'
sed -i '' "/${matomoTagOrig}/r./.ci/analytics/gdpr-banner.html" theme/templates/_index.html
fi
# install npm # install npm
yarn global add grunt-cli generator-reveal yarn global add grunt-cli generator-reveal
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment