I was trying to brew update when I got suddenly a permission error:
/usr/local/bin/brew: line 28: /usr/local/Library/brew.rb: Permission denied
/usr/local/bin/brew: line 28: exec: /usr/local/Library/brew.rb: cannot execute: Undefined error: 0
I also tried sudo brew update, but without any luck.
What can I do?