Skip to content

Commit

Permalink
Added display_current_version()
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jan 5, 2011
1 parent ed8f539 commit 0594bb0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bin/n
Expand Up @@ -60,6 +60,28 @@ display_n_version() {
echo $VERSION && exit 0
}

#
# Display current node --version
#

display_current_version() {
if test `which node`; then
local version=`node --version`
echo " current: $version"
else
echo " current: none"
fi
}

#
# Display current node --version
# and others installed.
#

display_versions() {
display_current_version
}

#
# Install node <version>
#
Expand Down

0 comments on commit 0594bb0

Please sign in to comment.