提交 43c5a17c 编写于 作者: Y Yu Yang

Fix convert_markdown_into_ipynb script

* User could use convert tools in PATH
上级 924961ba
...@@ -19,7 +19,7 @@ before_install: ...@@ -19,7 +19,7 @@ before_install:
- pip install virtualenv pre-commit - pip install virtualenv pre-commit
- GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb - GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb
script: script:
- travis/precommit.sh - PATH=/tmp/go/bin:$PATH travis/precommit.sh
notifications: notifications:
email: email:
on_success: change on_success: change
......
#!/bin/sh #!/bin/sh
for file in $@ ; do for file in $@ ; do
/tmp/go/bin/markdown-to-ipynb < $file > ${file%.*}".ipynb" markdown-to-ipynb < $file > ${file%.*}".ipynb"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo >&2 "markdown-to-ipynb $file error" echo >&2 "markdown-to-ipynb $file error"
exit 1 exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册