add download script

This commit is contained in:
c9s 2020-12-29 17:46:13 +08:00
parent e1af4011e4
commit 63193c4b3f

View File

@ -2,7 +2,11 @@
osf=$(uname | tr '[:upper:]' '[:lower:]') osf=$(uname | tr '[:upper:]' '[:lower:]')
version=v1.5.0 version=v1.5.0
echo "Downloading bbgo" if [[ -n $1 ]] ; then
version=$1
fi
curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf
chmod +x bbgo chmod +x bbgo
echo "Binary downloaded"
echo "bbgo is downloaded at ./bbgo"