Fixed issue with double entry of PATH variable with new chek_profile function.

This commit is contained in:
mattchis 2022-12-08 14:19:13 -07:00
parent ff0eb12f2a
commit 39a78fcaa2

View File

@ -121,11 +121,9 @@ function go_install() {
tar -xvzf /tmp/golang.tar.gz -C /usr/local/ tar -xvzf /tmp/golang.tar.gz -C /usr/local/
rm /tmp/golang.tar.gz rm /tmp/golang.tar.gz
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/usr/local/go export GOPATH=/usr/local/go
export GOCACHE=/root/.cache/go-build export GOCACHE=/root/.cache/go-build
echo "export PATH=$PATH:/usr/local/go/bin" >> /root/.profile
echo "Golang Install Done !" echo "Golang Install Done !"
} }
@ -219,8 +217,8 @@ function check_profile () {
case $1 in case $1 in
install) install)
go_install
check_profile check_profile
go_install
install_mesh install_mesh
agent_compile agent_compile
install_agent install_agent