diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 37090fe895fa9bdccc7cedbc0bc437acd4fcfc86..7eabe15d684b7cb30194338d1de18ce2d334b932 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,7 +32,7 @@ check_style:
     - export EASYBUILD_MODULE_NAMING_SCHEME="FlexibleCustomHierarchicalMNS"
     - faulty=""
     - printf "Checking changes between base %s (%s) and tip %s (%s)\n" "$BASE_COMMIT" "$(git describe --all --exclude pipeline/* $BASE_COMMIT 2> /dev/null)" "$TIP_COMMIT" "$(git describe --all --exclude pipeline/* $TIP_COMMIT 2> /dev/null)"
-    - eb_list=$(git diff-tree --no-commit-id -r "$TIP_COMMIT" "$BASE_COMMIT" | awk '$5 ~ /^M|^A/ && $6 ~ /eb$/ {print($6)}')
+    - eb_list=$(git diff-tree --no-commit-id -r "$BASE_COMMIT" "$TIP_COMMIT" | awk '$5 ~ /^M|^A/ && $6 ~ /eb$/ {print($6)}')
     - echo "List of files to be checked $eb_list"
     - for i in $eb_list; do
     - echo "Checking $(basename $i) ..."