From a05870baa91269c3f2802286ab6aa9f7d2ca0a05 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Thu, 9 Jul 2020 13:16:00 +0200
Subject: [PATCH] simplify sed

---
 .ci/deploy.sh | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index 0abc904a..e0ca644c 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -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
-- 
GitLab