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

simplify sed

parent c02df3ea
......@@ -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
......
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