From 95ffad8d92cecaacfda3b99296c028797a708d6c Mon Sep 17 00:00:00 2001 From: xuejianqing Date: Wed, 10 Oct 2018 23:54:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=BF=87=E7=A8=8B=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=94=99=E8=AF=AF=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install.sh b/install.sh index 27fd9235..221547d3 100755 --- a/install.sh +++ b/install.sh @@ -1,20 +1,33 @@ #!/bin/bash +function check_result() { + if [ $? -ne 0 ]; then + echo " " + echo "do command failed for $1 !!!" + echo " " + exit 1 + fi +} + #Build ctp/lts/ib api pushd vnpy/api/ctp bash build.sh +check_result "build api.ctp" popd pushd vnpy/api/lts bash build.sh +check_result "build api.lts" popd pushd vnpy/api/xtp bash build.sh +check_result "build api.xtp" popd pushd vnpy/api/ib bash build.sh +check_result "build api.ib" popd #Install Python Modules