visual install tweak

pull/8/head
Simon Let 7 years ago
parent b99e4a8edc
commit f874e93bc3
  1. 5
      install_helper.sh

@ -3,10 +3,12 @@
if ! go version &>/dev/null; then if ! go version &>/dev/null; then
echo echo
echo "===========================================================================" echo "==========================================================================="
echo
echo "Please INSTALL GOLANG and run this again" echo "Please INSTALL GOLANG and run this again"
echo echo
if [ "$(uname)" = "Darwin" ]; then if [ "$(uname)" = "Darwin" ]; then
echo 'You can probably use `brew install go`.' echo 'You can probably use `brew install go`.'
echo
echo "===========================================================================" echo "==========================================================================="
echo echo
exit 1 exit 1
@ -15,17 +17,20 @@ if ! go version &>/dev/null; then
if [ "${ID}" = "ubuntu" ]; then if [ "${ID}" = "ubuntu" ]; then
echo 'You can probably use `sudo snap install go --classic` (gets latest golang - RECOMMENDED)' echo 'You can probably use `sudo snap install go --classic` (gets latest golang - RECOMMENDED)'
echo 'OR `sudo apt install go` (this might give you old golang)' echo 'OR `sudo apt install go` (this might give you old golang)'
echo
echo "===========================================================================" echo "==========================================================================="
echo echo
exit 1 exit 1
elif [ "${ID_LIKE}" = "debian" ]; then elif [ "${ID_LIKE}" = "debian" ]; then
echo 'You can probably use `sudo apt install go`' echo 'You can probably use `sudo apt install go`'
echo
echo "===========================================================================" echo "==========================================================================="
echo echo
exit 1 exit 1
fi fi
fi fi
echo "It's recomended to use your favourite package manager." echo "It's recomended to use your favourite package manager."
echo
echo "===========================================================================" echo "==========================================================================="
echo echo
exit 1 exit 1

Loading…
Cancel
Save