moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.87k stars 520 forks source link

fix: zsh running gvm-installer error #465

Closed HuihuangZhang closed 2 months ago

HuihuangZhang commented 4 months ago

Zsh does not support [ "xxx" == "yyy" ].

For example: zsh -c '[ $(uname) == "Linux" ] && echo "system is Linux" || echo "system is not Linux"'. Zsh will throw error(zsh: = not found).

reference: https://unix.stackexchange.com/a/255483

bote795 commented 4 months ago

thanks this worked!

i was getting the following error:

zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
Cloning from https://github.com/moovweb/gvm.git to /root/.gvm
zsh: = not found