From 8b617036c77b0994833f0392ed01b0c8d04a8cf3 Mon Sep 17 00:00:00 2001
From: Jason Kridner <jkridner@beagleboard.org>
Date: Mon, 26 Sep 2022 21:15:23 -0400
Subject: [PATCH] CI: fix syntax error

---
 gitlab-build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gitlab-build.sh b/gitlab-build.sh
index 37c6f587..947d07f5 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -65,9 +65,9 @@ cat <<HERE > public/index.html
     <p>Please follow <a href="latest/">this link</a>.</p>
   </body>
 </html>
-fi
-cp public/index.html /var/www/docs
 HERE
+cp public/index.html /var/www/docs
+fi
 sphinx-build -b html . public/$GIT_BRANCH/
 sphinx-build -M latexpdf . public/$GIT_BRANCH/
 cp public/$GIT_BRANCH/latex/beagleboard-docs.pdf public/$GIT_BRANCH/beagleboard-docs-$CI_COMMIT_TAG.pdf
-- 
GitLab