hasen's tech life

Twitter: @hasen

El Capitan GMでbrew updateに失敗したので対応した.

# El Capitan GMbrew updateに失敗したので対応した.
# 元々Yosemiteで, El Capitanにアップデートしている.

# error
$ brew update
> brew error: unable to unlink old '.gitignore' (Permission denied)

参考: Failed `brew update` on El Capitan (OS X 10.11) Beta
$ ls -al /usr/local
> drwxr-xr-x 29 root wheel .
> ... (略)
$ sudo chown $(whoami):admin /usr/local

# success
$ brew update