andreascreten/wp-cli — Issue #48: Installation via git fails on OSX Lion.
Author: tott
Created: 2011-12-19 11:29:13+00:00
State: open

When installing via
```git clone --recurse-submodules git://github.com/andreascreten/wp-cli.git ~/git/wp-cli
cd ~/git/wp-cli
sudo utils/build-dev```
on OSX Lion I run into some errors due to missing directories. The following changes to build-dev solve the issue for me
```#!/usr/bin/env bash

if [ ! -L /usr/bin/wp ]; then
ln -s $(pwd)/src/bin/wp /usr/bin/wp
fi

if [ ! -d /etc/bash_completion.d/ ]; then
mkdir /etc/bash_completion.d
fi
if [ ! -L /etc/bash_completion.d/wp ]; then
ln -s $(pwd)/utils/wp-completion.bash /etc/bash_completion.d/wp
fi
```