mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
update setup script
This commit is contained in:
parent
42dcc5632b
commit
b9aa182727
|
@ -1,8 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
|
||||||
version=v1.15.3
|
|
||||||
dist_file=bbgo-$version-$osf-amd64.tar.gz
|
|
||||||
|
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
|
@ -24,10 +21,15 @@ function info()
|
||||||
echo -e "${GREEN}$@${NC}"
|
echo -e "${GREEN}$@${NC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
|
arch=amd64
|
||||||
|
version=v1.15.4
|
||||||
|
dist_file=bbgo-$version-$osf-$arch.tar.gz
|
||||||
|
|
||||||
info "downloading..."
|
info "downloading..."
|
||||||
curl -O -L https://github.com/c9s/bbgo/releases/download/$version/$dist_file
|
curl -O -L https://github.com/c9s/bbgo/releases/download/$version/$dist_file
|
||||||
tar xzf $dist_file
|
tar xzf $dist_file
|
||||||
mv bbgo-$osf bbgo
|
mv bbgo-$osf-$arch bbgo
|
||||||
chmod +x bbgo
|
chmod +x bbgo
|
||||||
info "downloaded successfully"
|
info "downloaded successfully"
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
|
||||||
version=v1.15.3
|
|
||||||
dist_file=bbgo-$version-$osf-amd64.tar.gz
|
|
||||||
|
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
|
@ -24,10 +21,15 @@ function info()
|
||||||
echo -e "${GREEN}$@${NC}"
|
echo -e "${GREEN}$@${NC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
osf=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
|
arch=amd64
|
||||||
|
version=v1.15.4
|
||||||
|
dist_file=bbgo-$version-$osf-$arch.tar.gz
|
||||||
|
|
||||||
info "downloading..."
|
info "downloading..."
|
||||||
curl -O -L https://github.com/c9s/bbgo/releases/download/$version/$dist_file
|
curl -O -L https://github.com/c9s/bbgo/releases/download/$version/$dist_file
|
||||||
tar xzf $dist_file
|
tar xzf $dist_file
|
||||||
mv bbgo-$osf bbgo
|
mv bbgo-$osf-$arch bbgo
|
||||||
chmod +x bbgo
|
chmod +x bbgo
|
||||||
info "downloaded successfully"
|
info "downloaded successfully"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user