From 7fc9e0ef22eead6de7486fd7c677436beb26016c Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Sun, 3 Aug 2014 22:43:45 +0200 Subject: [PATCH] Edit gvm-installer to be compatible with zsh --- README | 2 ++ README.md | 2 ++ binscripts/gvm-installer | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README b/README index 506fdfc..8527513 100644 --- a/README +++ b/README @@ -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 diff --git a/README.md b/README.md index 892ed49..c5545eb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/binscripts/gvm-installer b/binscripts/gvm-installer index d899bf3..3a493be 100755 --- a/binscripts/gvm-installer +++ b/binscripts/gvm-installer @@ -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