Install script now checks for $GOPATH/bin in $PATH
This commit is contained in:
parent
f0c280af1a
commit
027fea7836
@ -3,7 +3,13 @@
|
|||||||
echo "Checking prerequisites..."
|
echo "Checking prerequisites..."
|
||||||
|
|
||||||
if hash go 2>/dev/null; then
|
if hash go 2>/dev/null; then
|
||||||
|
if [[ ":$PATH:" == *":$GOPATH/bin:"* || ":$PATH:" == *":$GOPATH/bin/:"* ]]; then
|
||||||
go version
|
go version
|
||||||
|
else
|
||||||
|
echo "Your \$PATH is missing \$GOPATH/bin, you should add this to your ~/.profile:"
|
||||||
|
echo "export PATH=\$PATH:/usr/local/go/bin:\$GOPATH/bin"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Go is not installed"
|
echo "Go is not installed"
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user