From 82bc4ef8eb985a27d5b0928ccacbbbd321b25974 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Fri, 28 Aug 2015 16:40:31 -0400 Subject: only assume ~/.nvm is a git repo if we clone it --- scripts/node/install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/node/install.sh b/scripts/node/install.sh index 6d62735998..26bf980027 100755 --- a/scripts/node/install.sh +++ b/scripts/node/install.sh @@ -15,12 +15,12 @@ fi if [ ! -d ~/.nvm ]; then git clone https://github.com/creationix/nvm.git ~/.nvm -fi -pushd ~/.nvm -git fetch -git checkout `git describe --abbrev=0 --tags` -popd + pushd ~/.nvm + git fetch + git checkout `git describe --abbrev=0 --tags` + popd +fi source ~/.nvm/nvm.sh -- cgit v1.2.1