Merge branch 'master' of git://github.com/danvk/dygraphs into highlight3
[dygraphs.git] / generate-jsdoc.sh
index 36b6c50..1468cac 100755 (executable)
@@ -7,9 +7,10 @@ echo Generating JSDoc...
 java -jar jsdoc-toolkit/jsrun.jar \
   jsdoc-toolkit/app/run.js \
   -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \
-  dygraph.js > /tmp/dygraphs-jsdocerrors.txt
+  dygraph.js \
+| tee /tmp/dygraphs-jsdocerrors.txt
 
-if [ -n /tmp/dygraphs-jsdocerrors.txt ]; then
+if [ -s /tmp/dygraphs-jsdocerrors.txt ]; then
   echo Please fix any jsdoc errors/warnings before sending patches.
 fi