Update brew recipe to use _path

This commit is contained in:
Correl Roush 2018-02-22 10:46:16 -05:00
parent 2bf11060cb
commit c949106d88

View file

@ -8,14 +8,13 @@ function __install_brew {
;;
*)
_recipe _apt
_recipe _path
for pkg in build-essential curl file git python-setuptools; do
_apt $pkg
done
[ -d ~/.linuxbrew ] || git clone -q https://github.com/Linuxbrew/brew.git ~/.linuxbrew
PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile
_path "$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin"
;;
esac
}