Update go-update
This commit is contained in:
parent
e43e310aab
commit
f00fdafc10
@ -4,7 +4,12 @@ CURRENT_GO_PATH=$(which go)
|
|||||||
|
|
||||||
if [ -z "$CURRENT_GO_PATH" ]; then
|
if [ -z "$CURRENT_GO_PATH" ]; then
|
||||||
echo "Go is not installed!"
|
echo "Go is not installed!"
|
||||||
CURRENT_GO_PATH="/usr/local/go"
|
CURRENT_GO_PATH=$(echo $GOROOT)
|
||||||
|
if [ -z "$CURRENT_GO_PATH" ]; then
|
||||||
|
CURRENT_GO_PATH="/usr/local/go"
|
||||||
|
else
|
||||||
|
CURRENT_GO_PATH="$CURRENT_GO_PATH"
|
||||||
|
fi
|
||||||
echo "Installing Go in $CURRENT_GO_PATH"
|
echo "Installing Go in $CURRENT_GO_PATH"
|
||||||
else
|
else
|
||||||
echo "Found Go in $CURRENT_GO_PATH"
|
echo "Found Go in $CURRENT_GO_PATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user