diff --git a/bin/n b/bin/n index 79091c4..c145dc7 100755 --- a/bin/n +++ b/bin/n @@ -177,6 +177,11 @@ install_node() { local dir=$VERSIONS_DIR/$version local url=$(tarball_url $version) + if test -d $dir; then + activate $version + exit + fi + echo log install $version