[docs] fix find complaint in example gathering script
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 8 Aug 2014 19:01:39 +0000 (12:01 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 8 Aug 2014 19:04:08 +0000 (12:04 -0700)
scripts/gather_examples.sh

index dd6cef0..3fc7260 100755 (executable)
@@ -22,7 +22,7 @@ for README_FILENAME in $(find examples -iname "readme.md"); do
 done
 
 # Gather docs from examples/*.ipynb and add YAML front-matter.
-for NOTEBOOK_FILENAME in $(find examples -d 1 -iname "*.ipynb"); do
+for NOTEBOOK_FILENAME in $(find examples -depth -iname "*.ipynb"); do
     DOCS_FILENAME=$GATHERED_DIR/$NOTEBOOK_FILENAME
     mkdir -p `dirname $DOCS_FILENAME`
     python scripts/copy_notebook.py $NOTEBOOK_FILENAME $DOCS_FILENAME