1
1
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:
liberodark 2020-02-07 02:01:11 +01:00 committed by GitHub
parent a04d2389c3
commit 554a276520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
run.sh
View File

@ -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"