This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Update latest stable version, use it and migrate npm packages. | |
PREV_VER=$(nodebrew ls|grep current:|cut -d ' ' -f 2) | |
echo "Current version: $PREV_VER" | |
echo "" | |
echo "nodebrew install-binary stable" | |
nodebrew install-binary stable | |
if [ $? -ne 0 ]; then | |
# Already installed |