From 43c5a17ca9f0b8b873765e99f5f4adc184ba412e Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Thu, 9 Mar 2017 13:20:37 +0800 Subject: [PATCH] Fix convert_markdown_into_ipynb script * User could use convert tools in PATH --- .travis.yml | 2 +- pre-commit-hooks/convert_markdown_into_ipynb.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3cf90df..9d29981 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ before_install: - pip install virtualenv pre-commit - 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 41ea1d8..dbcb104 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 -- GitLab