Created
November 14, 2016 16:04
-
-
Save joergpatz/7b76fd1b65311abfca03c970d75c28b9 to your computer and use it in GitHub Desktop.
script for updating Node Version Manager
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 | |
set -e | |
cd ~/.nvm | |
git fetch --tags | |
TAG=$(git describe --tags `git rev-list --tags --max-count=1`) | |
echo "Checking out tag $TAG..." | |
git checkout "$TAG" | |
source ~/.nvm/nvm.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment