diff --git a/.travis.yml b/.travis.yml index b4b1e0f9ae819923373736317b77c75787d0d39b..6f05d96a1a994bad3c3417ca39435b2a18d9f4a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ before_install: - pip install -U virtualenv pre-commit pip - GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb script: - - travis/precommit.sh + - PATH=/tmp/go/bin:$PATH travis/precommit.sh notifications: email: on_success: change diff --git a/pre-commit-hooks/convert_markdown_into_ipynb.sh b/pre-commit-hooks/convert_markdown_into_ipynb.sh index 41ea1d8135989a4150456ff8bca0fc29bd8b293f..dbcb1046d82010f776792287b45abdebf5b097ee 100755 --- a/pre-commit-hooks/convert_markdown_into_ipynb.sh +++ b/pre-commit-hooks/convert_markdown_into_ipynb.sh @@ -1,6 +1,6 @@ #!/bin/sh for file in $@ ; do - /tmp/go/bin/markdown-to-ipynb < $file > ${file%.*}".ipynb" + markdown-to-ipynb < $file > ${file%.*}".ipynb" if [ $? -ne 0 ]; then echo >&2 "markdown-to-ipynb $file error" exit 1