From 6bd6e4ba2c6e34f83241ce62f54eb2a6e66f9903 Mon Sep 17 00:00:00 2001 From: Miki Tebeka Date: Tue, 29 Sep 2020 20:40:47 +0300 Subject: [PATCH] Use $(go env GOPATH) that works even when GOPATH is not set --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2abbae..535a533 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ You may obtain a copy of the License [here](http://www.apache.org/licenses/LICEN ### CI Installation ```bash -# binary will be $GOPATH/bin/gosec -curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin vX.Y.Z +# binary will be $(go env GOPATH)/bin/gosec +curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin vX.Y.Z # or install it into ./bin/ curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s vX.Y.Z