creationix/nvm — pull request #270 by hachre (2013-07-21 06:18:28+00:00)
Title: Switch from /bin/sh to /bin/bash

You have bashisms in your script and /bin/sh might not always be bash. In that case the script would fail (for example on Ubuntu).