diff --git a/gitlab-build.sh b/gitlab-build.sh
index 722d38a0de5f70ffc5a6dcb98db4319575ccd705..0ed3276bb7386285ab69e61a326e5d71eb6e510b 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -46,7 +46,7 @@ HERE
 	make clean BUILDDIR=public/$VER_DIR
 
 	echo "**** make librobotcontrol xml ****"
-	if [ -e projects/librobotcontrol/docx ] ; then
+	if [ -e projects/librobotcontrol/docs ] ; then
 		cd projects/librobotcontrol/docs
 		doxygen
 		cd ../../..