diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b39736f8e524ad944c62437be7c25d10b73d8c1e..2c83419643e4bcbfbb523428d39bbb0c8f15b2f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,12 +45,11 @@ check_style:
     - for i in $eb_list; do
     - echo "Checking $(basename $i) ..."
     - if [[ $(basename $i) == *AMBER* ]]; then
-    - sg amber eb --check-style --check-contrib $i || faulty="$faulty $i"
+    - sg amber -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
     - elif [[ $(basename $i) == *CPMD* ]]; then
-    - sg cpmd eb --check-style --check-contrib $i || faulty="$faulty $i"
+    - sg cpmd -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
     - elif [[ $(basename $i) == *NAMD* ]]; then
-    - echo sg namd eb --check-style --check-contrib $i
-    - sg namd eb --check-style --check-contrib $i || faulty="$faulty $i"
+    - sg namd -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
     - else
     - eb --check-style --check-contrib $i || faulty="$faulty $i"
     - fi