aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-07-31 21:38:46 -0700
committerMax Howell2009-08-02 01:25:02 +0100
commitdb15b323bb0313520e2a9b0705963c952bfa2b24 (patch)
tree557b88e08c0bcca46f62d2480ea951168ecfe024 /Library
parentfe71812af6285447d293a7e1fd223a1126b6d299 (diff)
downloadbrew-db15b323bb0313520e2a9b0705963c952bfa2b24.tar.bz2
Create /usr/local/bin if it doesn't already exist.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/selflink.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Contributions/selflink.sh b/Library/Contributions/selflink.sh
index c99f3956f..85ee7ffd4 100755
--- a/Library/Contributions/selflink.sh
+++ b/Library/Contributions/selflink.sh
@@ -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";