[Bf-blender-cvs] [f12c55d] master: Correct exit-code check

Campbell Barton noreply at git.blender.org
Tue Jun 7 06:15:43 CEST 2016


Commit: f12c55d2b8070fbb01005a527c4d344b7d136609
Author: Campbell Barton
Date:   Tue Jun 7 13:57:50 2016 +1000
Branches: master
https://developer.blender.org/rBf12c55d2b8070fbb01005a527c4d344b7d136609

Correct exit-code check

===================================================================

M	doc/python_api/sphinx_doc_gen.sh

===================================================================

diff --git a/doc/python_api/sphinx_doc_gen.sh b/doc/python_api/sphinx_doc_gen.sh
index 7095808..1ab6bd5 100755
--- a/doc/python_api/sphinx_doc_gen.sh
+++ b/doc/python_api/sphinx_doc_gen.sh
@@ -61,7 +61,7 @@ if $DO_EXE_BLENDER ; then
 		--python-exit-code 1 \
 		--python $SPHINXBASE/sphinx_doc_gen.py
 
-	if (($? == 1)) ; then
+	if (($? != 0)) ; then
 		echo "Generating documentation failed, aborting"
 		exit 1
 	fi




More information about the Bf-blender-cvs mailing list