From 37a0afafbb7e2dc588e769c5b8862a3ea1eeeb78 Mon Sep 17 00:00:00 2001 From: j3ssie Date: Sat, 25 Jul 2020 16:56:16 +0700 Subject: [PATCH] Small fix on install scripts --- .github/FUNDING.yml | 2 +- install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 77bf0d5..206da71 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] +custom: ['https://paypal.me/j3ssiejjj'] diff --git a/install.sh b/install.sh index f8681fb..8c2c6d4 100755 --- a/install.sh +++ b/install.sh @@ -140,12 +140,12 @@ source $DEFAULT_SHELL # update golang version install_banner "Install Golang latest version" -curl -sL https://raw.githubusercontent.com/kerolloz/go-installer/master/go.sh | bash 2>/dev/null +wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash 2>&1 >/dev/null GO_BIN="$HOME/.go/bin/go" # in case the script fail [[ -f $GO_BIN ]] || GO_BIN=$(which go) echo -e "\033[1;32m[+] Detected go binary: $GO_BIN \033[0m" -[[ -d $GO_DIR ]] || GO_BIN=$GOPATH/bin +[[ -d $GO_DIR ]] || GO_DIR=$GOPATH/bin echo -e "\033[1;32m[+] Detected go tools: $GO_DIR \033[0m" ##