diff --git a/gitlab-build.sh b/gitlab-build.sh
index 37d74f2fd615a226974fa0228b7fe37e8e1cb2d9..cbcbed9f86bace90bbf212e92f149871906b9122 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -84,7 +84,7 @@ elif [ "$CI_COMMIT_TAG" != "" ]; then
 	export VERSION_MINOR=${TAG_VER[1]}
 	export EXTRAVERSION=${TAG_SPLIT[1]}
 	# export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | head -1 | sed 's/.*origin\///')
-	if ["$PROJECT_BRANCH" != ""]; then export GIT_BRANCH=$PROJECT_BRANCH; else export GIT_BRANCH=$CI_DEFAULT_BRANCH; fi
+	if [ "$PROJECT_BRANCH" != "" ]; then export GIT_BRANCH=$PROJECT_BRANCH; else export GIT_BRANCH=$CI_DEFAULT_BRANCH; fi
 
 	if [ "$GIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
 		export VER_DIR=latest