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 _apt
_recipe _path
for pkg in build-essential curl file git python-setuptools; do for pkg in build-essential curl file git python-setuptools; do
_apt $pkg _apt $pkg
done done
[ -d ~/.linuxbrew ] || git clone -q https://github.com/Linuxbrew/brew.git ~/.linuxbrew [ -d ~/.linuxbrew ] || git clone -q https://github.com/Linuxbrew/brew.git ~/.linuxbrew
PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH" _path "$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin"
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
;; ;;
esac esac
} }