creationix/nvm — pull request #171 by cou929 (2012-11-23 16:16:05+00:00)
Title: support platforms which does not have shasum command

Use sha1sum command if there is no shasum command.

Such like CentOS, for example, there are platforms which doesn't have 'shasum' command. On the such platform, we can install nothing because cannot calculate checksum. Like below:

$ nvm install v0.9.1
######################################################################## 100.0%
nvm:1: command not found: shasum
Checksums do not match.
Binary download failed, trying source.
Additional options while compiling:
######################################################################## 100.0%
nvm:1: command not found: shasum
Checksums do not match.
nvm: install v0.9.1 failed!