Bench update fails on Mac after latest brew update

Bench update is failing on my Mac after the latest upgrade of Homebrew

Library not loaded: /usr/local/opt/mariadb/lib/libmysqlclient.18.dylib

may help,
http://afshinm.name/2016/02/05/how-to-fix-library-not-loaded-libmysqlclient-18-dylib-in-mac-os-x/

check path first before executing commands.

Thanks for your reply @saurabh6790

I tried that but I get the following:

Library not loaded: /usr/local/opt/mariadb/lib/libmysqlclient.18.dylib
  Referenced from: /Users/ishanloya/frappe-bench/env/lib/python2.7/site-packages/_mysql.so
  Reason: Incompatible library version: _mysql.so requires version 18.0.0 or later, but libmysqlclient.18.dylib provides version 3.0.0

Tried it again and it worked. If you have homebrew, updating it upgrades mariadb to 10.2 which causes this issue. Can be closed.