install improvements

pull/8/head
Simon Let 7 years ago
parent b643c7c4dd
commit d0956b87a5
  1. 2
      Makefile
  2. 17
      install_helper.sh

@ -29,6 +29,8 @@ install: build | $(HOME)/.resh $(HOME)/.resh/bin $(HOME)/.config $(HOME)/.resh/r
# Restarting resh daemon ...
[ ! -f ~/.resh/resh.pid ] || kill -SIGTERM $$(cat ~/.resh/resh.pid)
nohup resh-daemon &>/dev/null & disown
# Final touch
touch ~/.resh_history.json
#
##########################################################
# #

@ -1,7 +1,24 @@
#!/usr/bin/env bash
if ! go version &>/dev/null; then
echo
echo "Please INSTALL GOLANG and run this again"
echo
if [ "$(uname)" = "Darwin" ]; then
echo 'You can probably use `brew install go`.'
exit 1
elif [ "$(uname)" = "Linux" ]; then
. /etc/os-release
if [ "${ID}" = "ubuntu" ]; then
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)'
exit 1
elif [ "${ID_LIKE}" = "debian" ]; then
echo 'You can probably use `sudo apt install go`'
exit 1
fi
fi
echo "It's recomended to use your favourite package manager."
exit 1
fi

Loading…
Cancel
Save