diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2e388ac1871a2b211e76b2d4c93215698a0e82c7..18ae4459cd3e7d57d24fc8334b9feb4df8169849 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,7 +47,7 @@ build-native:       # This job runs in the build stage, which runs first.
     - export CCACHE_BASEDIR="$PWD"
     - export CCACHE_DIR="$PWD/ccache"
     - export CCACHE_COMPILERCHECK=content
-    - echo Dir::Cache="$PWD/apt" | tee /etc/apt/apt.conf.d/99cache
+    - echo -n Dir::Cache="$PWD/apt" | tee /etc/apt/apt.conf.d/99cache
     - apt-get update
     - apt-get install --no-install-recommends --yes ccache
     - ccache --zero-stats || true