I believe lines 39 and 40 can be simplified to:

```
if [ `command -v brew` ]; then
```