Skip to content
Snippets Groups Projects
Verified Commit a05870ba authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

simplify sed

parent c02df3ea
No related branches found
No related tags found
No related merge requests found
......@@ -48,14 +48,9 @@ do
ln -s ../../theme theme
# add matomo
if [[ -v matomoID ]]; then
matomoTagOrig='<!-- matomohead -->'
sed -i '' "/${matomoTagOrig}/r./.ci/analytics/head.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
sed -i "/matomohead/r./.ci/analytics/head.html" theme/templates/_index.html
sed -i "/matomopolicy/r./.ci/analytics/policy.html" theme/templates/_index.html
sed -i "/matomobanner/r./.ci/analytics/gdpr-banner.html" theme/templates/_index.html
# install npm
yarn global add grunt-cli generator-reveal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment