0
0
mirror of https://github.com/tj/n.git synced 2024-11-29 05:42:48 +01:00

add activation when already installed

This commit is contained in:
TJ Holowaychuk 2013-01-18 07:48:34 -08:00
parent 873e6e6f7b
commit 374b70ecdb

5
bin/n
View File

@ -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