diff --git a/openbis_all/source/bash/build/build.sh b/openbis_all/source/bash/build/build.sh
index c235903428a8db55d743eff076f4b0d65037b62e..9744734ce2614d2cbd51c4712fa72e6dde7de258 100755
--- a/openbis_all/source/bash/build/build.sh
+++ b/openbis_all/source/bash/build/build.sh
@@ -18,15 +18,15 @@ function move_to_file_server {
   chmod g+w -R $SPRINT_DIR
 }
 
-if [ $# -ne 1 ]
+if [ $# -ne 2 ]
 then
 	usage
 fi
 
 TODAY=`date "+%Y-%m-%d"`
 
-branch = $1
-tag = $2
+branch=$1
+tag=$2
 
 # cd to repository root directory
 cd "$(dirname "$0")/../../../.."