build_inf_prepare_jenkins: fix env when install go 65/8365/1
authorJackie Huang <jackie.huang@windriver.com>
Mon, 23 May 2022 01:55:43 +0000 (09:55 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Mon, 23 May 2022 01:55:43 +0000 (09:55 +0800)
Issue-ID: INF-274

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I65586e424281e2745787d1d565eab1b008be3d63

scripts/build_inf_centos/build_inf_prepare_jenkins.sh

index 4f6c9ce..be6e5e3 100755 (executable)
@@ -201,7 +201,7 @@ export GOPATH="/usr/local/go"
 export PATH="${GOPATH}/bin:${PATH}"
 sudo yum install -y golang
 sudo mkdir -p ${GOPATH}/bin
-curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sudo sh
+curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sudo -E sh
 
 # pip installs
 # Install required python modules globally; versions are in the constraints file.