mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
Merge pull request #96 from runcom/zsh_installer_compatibility
Edit gvm-installer to be compatible with zsh
This commit is contained in:
@@ -25,6 +25,8 @@ To install:
|
||||
|
||||
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||
|
||||
Or if you are using zsh just change `bash` with `zsh`
|
||||
|
||||
Installing Go
|
||||
=============
|
||||
gvm install go1
|
||||
|
||||
@@ -28,6 +28,8 @@ To install:
|
||||
|
||||
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||
|
||||
Or if you are using zsh just change `bash` with `zsh`
|
||||
|
||||
Installing Go
|
||||
=============
|
||||
gvm install go1
|
||||
|
||||
@@ -19,7 +19,7 @@ update_profile() {
|
||||
|
||||
check_existing_go() {
|
||||
|
||||
if [ "$GOROOT" == "" ]; then
|
||||
if [ "$GOROOT" = "" ]; then
|
||||
if which go > /dev/null; then
|
||||
GOROOT=$(go env | grep GOROOT | cut -d"=" -f2)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user