From 4bc841560e60222b77530d0f664b445b8c0f3d2b Mon Sep 17 00:00:00 2001 From: "feiren.kuang" Date: Sat, 23 Mar 2019 11:03:24 +0800 Subject: [PATCH] fix pre-commit issue (#812) * Update config.yml --- pre-commit | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pre-commit b/pre-commit index ef1da8eba6..b7387f862a 100644 --- a/pre-commit +++ b/pre-commit @@ -8,8 +8,7 @@ #CURR_DIR="$(dirname $0)" #workspace=$(cd ../../) -gopath=$(go env|grep GOPATH) -export LD_LIBRARY_PATH=:${gopath}/src/github.com/iotexproject/iotex-core/crypto/lib +export LD_LIBRARY_PATH=:$GOPATH/src/github.com/iotexproject/iotex-core/crypto/lib check_result() { if [ $? != 0 ]; then echo "$1 failed!!" @@ -23,7 +22,7 @@ check_result() { fi } -cd ../../ && ./go.test.sh +./go.test.sh check_result go.test.sh curl -s https://codecov.io/bash|bash go test -run=XXX -bench=. $(go list ./crypto)