mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 02:16:23 -05:00
Update run.sh (#296)
This commit is contained in:
parent
a04d2389c3
commit
554a276520
10
run.sh
10
run.sh
@ -5,7 +5,7 @@
|
|||||||
# License: GNU GPLv3
|
# License: GNU GPLv3
|
||||||
|
|
||||||
version="0.0.7"
|
version="0.0.7"
|
||||||
|
go_version="1.13.4"
|
||||||
echo "OpenDiablo 2 Build Script $version"
|
echo "OpenDiablo 2 Build Script $version"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
@ -27,7 +27,7 @@ go_install(){
|
|||||||
|
|
||||||
if [ "$distribution" = "CentOS" ] || [ "$distribution" = "Red\ Hat" ] || [ "$distribution" = "Oracle" ]; then
|
if [ "$distribution" = "CentOS" ] || [ "$distribution" = "Red\ Hat" ] || [ "$distribution" = "Oracle" ]; then
|
||||||
echo "Downloading Go"
|
echo "Downloading Go"
|
||||||
wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz > /dev/null 2>&1
|
wget https://dl.google.com/go/go"$go_version".linux-amd64.tar.gz > /dev/null 2>&1
|
||||||
echo "Install Go"
|
echo "Install Go"
|
||||||
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz > /dev/null 2>&1
|
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz > /dev/null 2>&1
|
||||||
echo "Clean unless files"
|
echo "Clean unless files"
|
||||||
@ -37,7 +37,7 @@ go_install(){
|
|||||||
|
|
||||||
elif [ "$distribution" = "Fedora" ]; then
|
elif [ "$distribution" = "Fedora" ]; then
|
||||||
echo "Downloading Go"
|
echo "Downloading Go"
|
||||||
wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz > /dev/null 2>&1
|
wget https://dl.google.com/go/go"$go_version".linux-amd64.tar.gz > /dev/null 2>&1
|
||||||
echo "Install Go"
|
echo "Install Go"
|
||||||
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz > /dev/null 2>&1
|
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz > /dev/null 2>&1
|
||||||
echo "Clean unless files"
|
echo "Clean unless files"
|
||||||
@ -47,7 +47,7 @@ go_install(){
|
|||||||
|
|
||||||
elif [ "$distribution" = "Debian" ] || [ "$distribution" = "Ubuntu" ] || [ "$distribution" = "Deepin" ]; then
|
elif [ "$distribution" = "Debian" ] || [ "$distribution" = "Ubuntu" ] || [ "$distribution" = "Deepin" ]; then
|
||||||
echo "Downloading Go"
|
echo "Downloading Go"
|
||||||
wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz > /dev/null 2>&1
|
wget https://dl.google.com/go/go"$go_version".linux-amd64.tar.gz > /dev/null 2>&1
|
||||||
echo "Install Go"
|
echo "Install Go"
|
||||||
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz > /dev/null 2>&1
|
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz > /dev/null 2>&1
|
||||||
echo "Clean unless files"
|
echo "Clean unless files"
|
||||||
@ -63,7 +63,7 @@ go_install(){
|
|||||||
|
|
||||||
elif [ "$distribution" = "OpenSUSE" ] || [ "$distribution" = "SUSE" ]; then
|
elif [ "$distribution" = "OpenSUSE" ] || [ "$distribution" = "SUSE" ]; then
|
||||||
echo "Downloading Go"
|
echo "Downloading Go"
|
||||||
wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz > /dev/null 2>&1
|
wget https://dl.google.com/go/go"$go_version".linux-amd64.tar.gz > /dev/null 2>&1
|
||||||
echo "Install Go"
|
echo "Install Go"
|
||||||
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz > /dev/null 2>&1
|
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz > /dev/null 2>&1
|
||||||
echo "Clean unless files"
|
echo "Clean unless files"
|
||||||
|
Loading…
Reference in New Issue
Block a user