Skip to content

Commit

Permalink
return when active
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jan 5, 2011
1 parent 7dccb39 commit 0161070
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/n
Expand Up @@ -105,12 +105,16 @@ display_versions() {

install_node() {
local version=$1
check_current_version

# remove "v"
if test "${version:0:1}" = "v"; then
version=${version:1:${#version}}
fi

# already active
test "$version" = "$installed" && return

# install
local dir="node-v$version"
cd $PREFIX/n \
Expand Down

0 comments on commit 0161070

Please sign in to comment.