mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
bump setup script to v1.15.3
This commit is contained in:
parent
259c6cbad7
commit
b1605adcd9
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
version=v1.15.2
|
version=v1.15.3
|
||||||
dist_file=bbgo-$version-$osf-amd64.tar.gz
|
dist_file=bbgo-$version-$osf-amd64.tar.gz
|
||||||
|
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
version=v1.15.2
|
version=v1.15.3
|
||||||
dist_file=bbgo-$version-$osf-amd64.tar.gz
|
dist_file=bbgo-$version-$osf-amd64.tar.gz
|
||||||
|
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
|
|
|
@ -1,11 +1,35 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
version=v1.15.2
|
version=v1.15.3
|
||||||
|
dist_file=bbgo-$version-$osf-amd64.tar.gz
|
||||||
|
|
||||||
echo "Downloading bbgo"
|
RED='\033[0;31m'
|
||||||
curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf
|
GREEN='\033[0;32m'
|
||||||
|
YELLOW='\033[0;33m'
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
function warn()
|
||||||
|
{
|
||||||
|
echo -e "${YELLOW}$@${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function error()
|
||||||
|
{
|
||||||
|
echo -e "${RED}$@${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function info()
|
||||||
|
{
|
||||||
|
echo -e "${GREEN}$@${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
info "downloading..."
|
||||||
|
curl -O -L https://github.com/c9s/bbgo/releases/download/$version/$dist_file
|
||||||
|
tar xzf $dist_file
|
||||||
|
mv bbgo-$osf bbgo
|
||||||
chmod +x bbgo
|
chmod +x bbgo
|
||||||
echo "Binary downloaded"
|
info "downloaded successfully"
|
||||||
|
|
||||||
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!"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user