add download script

This commit is contained in:
c9s 2020-12-29 17:37:21 +08:00
parent 70479bfd16
commit e1af4011e4

8
scripts/download.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
osf=$(uname | tr '[:upper:]' '[:lower:]')
version=v1.5.0
echo "Downloading bbgo"
curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf
chmod +x bbgo
echo "Binary downloaded"