bbgo_origin/scripts/download.sh
2020-12-29 17:47:49 +08:00

14 lines
276 B
Bash
Executable File

#!/bin/bash
osf=$(uname | tr '[:upper:]' '[:lower:]')
version=v1.5.0
if [[ -n $1 ]] ; then
version=$1
fi
echo "downloading bbgo $version"
curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf
chmod +x bbgo
echo "bbgo is downloaded at ./bbgo"