From c949106d886f8d745307bd45fda17844439cae15 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 22 Feb 2018 10:46:16 -0500 Subject: [PATCH] Update brew recipe to use _path --- recipes/brew | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/brew b/recipes/brew index a3d1836..2f3633e 100644 --- a/recipes/brew +++ b/recipes/brew @@ -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 }