diff --git a/scripts/download.sh b/scripts/download.sh index 7987b7cd4..e35f12e9b 100755 --- a/scripts/download.sh +++ b/scripts/download.sh @@ -2,7 +2,11 @@ osf=$(uname | tr '[:upper:]' '[:lower:]') 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 chmod +x bbgo -echo "Binary downloaded" + +echo "bbgo is downloaded at ./bbgo"