From d671d6ff01b12627d570a318f53f9a6011547fb9 Mon Sep 17 00:00:00 2001
From: Jacek Lebioda <jacek.lebioda@uni.lu>
Date: Mon, 11 Nov 2019 09:26:41 +0100
Subject: [PATCH] Use master's 404.html

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

diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index 61c0e4c7..0726a174 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -17,6 +17,11 @@ for branch in $(git for-each-ref --format='%(refname:strip=3)' refs/remotes); do
 
     # build the website
     bundle exec jekyll build --baseurl="howto-cards/$artefact" -d "public/$artefact"
+
+    if [[ $branch == "master" ]]; then
+        # set the 404
+        cp howto-cards/$artefact/404.html public/404.html
+    fi
 done
 
 # checkout the current branch
@@ -26,6 +31,3 @@ git reset --hard origin/$CI_COMMIT_REF_NAME
 
 # set the auto redirection
 cp .ci/.autoRedirect public/index.html
-
-# set the 404
-cp 404.html public/.
-- 
GitLab