bbgo_origin/scripts/download.sh

14 lines
276 B
Bash
Raw Normal View History

2020-12-29 09:37:21 +00:00
#!/bin/bash
osf=$(uname | tr '[:upper:]' '[:lower:]')
2020-12-31 09:46:31 +00:00
version=v1.6.0
2020-12-29 09:37:21 +00:00
2020-12-29 09:46:13 +00:00
if [[ -n $1 ]] ; then
version=$1
fi
2020-12-29 09:47:49 +00:00
echo "downloading bbgo $version"
2020-12-29 09:37:21 +00:00
curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf
chmod +x bbgo
2020-12-29 09:46:13 +00:00
echo "bbgo is downloaded at ./bbgo"