You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
laughing-hipster/installers/apps/golang.sh

13 lines
444 B

#!/bin/sh
GO_VERSION=1.13
if [ ! -d "${HOME_DIR}/.gvm/" ]; then
# install GVM
echo "installing gvm";
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer);
echo "[[ -s \"\$HOME/.gvm/scripts/gvm\" ]] && source \"\$HOME/.gvm/scripts/gvm\"" > ${HOME_DIR}/.shell_extensions/gvm.sh;
source ${HOME_DIR}/.gvm/scripts/gvm;
gvm install go${GO_VERSION} -B;
gvm use go${GO_VERSION} --default;
fi