Browse files

Added display_current_version()

  • Loading branch information...
1 parent ed8f539 commit 0594bb0e13ba68f3bdf20189931d5b822c2d2504 @tj committed Jan 5, 2011
Showing with 22 additions and 0 deletions.
  1. +22 −0 bin/n
View
22 bin/n
@@ -61,6 +61,28 @@ display_n_version() {
}
#
+# 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>
#

0 comments on commit 0594bb0

Please sign in to comment.