Update go-update

This commit is contained in:
Sambo Chea 2023-08-14 10:32:39 +07:00
parent e43e310aab
commit f00fdafc10

View File

@ -4,7 +4,12 @@ CURRENT_GO_PATH=$(which go)
if [ -z "$CURRENT_GO_PATH" ]; then
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"
else
echo "Found Go in $CURRENT_GO_PATH"