Create /usr/local/bin if it doesn't already exist.

This commit is contained in:
Adam Vandenberg 2009-07-31 21:38:46 -07:00 committed by Max Howell
parent fe71812af6
commit db15b323bb

View File

@ -13,6 +13,10 @@ if [[ $mode == install ]]; then
mkdir -p "$source_base/Cellar"
fi
if [[ ! -e "/usr/local/bin" ]] ; then
mkdir -p /usr/local/bin
fi
ln -s "$source_base/bin/brew" "/usr/local/bin/brew";
ln -s "$source_base/Library" "/usr/local/Library";
ln -s "$source_base/Cellar" "/usr/local/Cellar";