diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a0e00f8a57d1195d7fb21a6d0b0c6a5222c5f5ca..62057149111147316f8f4c21550758e7becace6e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,7 +27,7 @@ build-job:       # This job runs in the build stage, which runs first.
     - build
   script:
     - |
-      if [ "$DEBUG" = true ]; do
+      if [ "$DEBUG" = true ]; then
         set -x
       fi
     - echo "Compiling the code..."
@@ -37,7 +37,7 @@ build-job:       # This job runs in the build stage, which runs first.
       echo line2
       echo line3
     - |
-      if [ "$DEBUG" = true ]; do 
+      if [ "$DEBUG" = true ]; then
         set +x
       fi