From fdbef133556b3f4cae87fbc003730e011222e0a2 Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 13 Mar 2021 19:48:58 +0800 Subject: [PATCH] update bollgrid installer --- scripts/setup-bollgrid.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/setup-bollgrid.sh b/scripts/setup-bollgrid.sh index a3259be8b..b7e5d8363 100755 --- a/scripts/setup-bollgrid.sh +++ b/scripts/setup-bollgrid.sh @@ -1,12 +1,13 @@ #!/bin/bash +set -e osf=$(uname | tr '[:upper:]' '[:lower:]') version=v1.13.0 dist_file=bbgo-$version-$osf-amd64.tar.gz echo "downloading..." -curl -L https://github.com/c9s/bbgo/releases/download/$version/$dist_file +curl -O -L https://github.com/c9s/bbgo/releases/download/$version/$dist_file tar xzf $dist_file -mv bbgo-darwin bbgo +mv bbgo-$osf bbgo chmod +x bbgo echo "downloaded"