Permalink
Browse files

return when active

  • Loading branch information...
1 parent 7dccb39 commit 01610706878b1bdc0509b81d357acc9c64368fe2 @tj committed Jan 5, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 bin/n
View
@@ -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 \

0 comments on commit 0161070

Please sign in to comment.