Oh-My-ZSH upgrade issue with bad substitution message

Any problem with automatic Oh-My-Zsh upgrade?

Last login: Mon May 13 13:57:50 2013 from domain.com
[Oh My Zsh] Would you like to check for updates?
Type Y to update oh-my-zsh: y
/home/user/.oh-my-zsh/tools/upgrade.sh: 2: Bad substitution

Simply do :

cd ~/.oh-my-zsh
git pull

And everything should be OK!