fix binary download

This commit is contained in:
c9s 2020-11-12 16:56:32 +08:00
parent 0e0f43dc76
commit 6928cba9ac

View File

@ -2,14 +2,10 @@
osf=$(uname | tr '[:upper:]' '[:lower:]')
version=v1.1.0
if [[ ! -e "bbgo" ]] ; then
curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf
chmod +x bbgo
echo "Binary downloaded"
fi
echo "Downloading bbgo"
curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf
chmod +x bbgo
echo "Binary downloaded"
if [[ -e "bbgo.yaml" ]] ; then
echo "Found existing bbgo.yaml, you will overwrite the existing bbgo.yaml file!"