diff options
| author | Adam Vandenberg | 2009-07-31 21:38:46 -0700 |
|---|---|---|
| committer | Max Howell | 2009-08-02 01:25:02 +0100 |
| commit | db15b323bb0313520e2a9b0705963c952bfa2b24 (patch) | |
| tree | 557b88e08c0bcca46f62d2480ea951168ecfe024 /Library | |
| parent | fe71812af6285447d293a7e1fd223a1126b6d299 (diff) | |
| download | brew-db15b323bb0313520e2a9b0705963c952bfa2b24.tar.bz2 | |
Create /usr/local/bin if it doesn't already exist.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/selflink.sh | 4 |
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"; |
