From 2096235f46125705051f15df081205666fc74d39 Mon Sep 17 00:00:00 2001 From: gongweibao Date: Wed, 8 Mar 2017 19:48:41 +0800 Subject: [PATCH] rm not need --- .travis.yml | 1 - pre-commit-hooks/convert_markdown_into_ipynb.sh | 9 --------- 2 files changed, 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 490e532..3cf90df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,6 @@ addons: - golang before_install: - pip install virtualenv pre-commit -install: - GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb script: - travis/precommit.sh diff --git a/pre-commit-hooks/convert_markdown_into_ipynb.sh b/pre-commit-hooks/convert_markdown_into_ipynb.sh index b79119a..41ea1d8 100755 --- a/pre-commit-hooks/convert_markdown_into_ipynb.sh +++ b/pre-commit-hooks/convert_markdown_into_ipynb.sh @@ -1,13 +1,4 @@ #!/bin/sh -command -v go >/dev/null 2>&1 -if [ $? -ne 0 ]; then - echo >&2 "Please install https://golang.org/doc/install#install" - exit 1 -fi - -#convert to ipynb file -#GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb - for file in $@ ; do /tmp/go/bin/markdown-to-ipynb < $file > ${file%.*}".ipynb" if [ $? -ne 0 ]; then -- GitLab