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