Skip to content

Commit 6bd6e4b

Browse files
tebekagcmurphy
authored andcommitted
Use $(go env GOPATH) that works even when GOPATH is not set
1 parent aef335a commit 6bd6e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ You may obtain a copy of the License [here](http://www.apache.org/licenses/LICEN
2828
### CI Installation
2929

3030
```bash
31-
# binary will be $GOPATH/bin/gosec
32-
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin vX.Y.Z
31+
# binary will be $(go env GOPATH)/bin/gosec
32+
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin vX.Y.Z
3333

3434
# or install it into ./bin/
3535
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s vX.Y.Z

0 commit comments

Comments
 (0)