Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #135 from jeromedecoster/remove-version-fix

remove version fix, not working as expected
  • Loading branch information...
commit ef91436f81d7528378061811455577a95af7aba5 2 parents 1f62129 + 00d82db
TJ Holowaychuk authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 bin/n
7 bin/n
View
@@ -299,11 +299,10 @@ install_node() {
# Remove <version ...>
#
-remove_version() {
+remove_versions() {
test -z $1 && abort "version(s) required"
- local version=${1#v}
while test $# -ne 0; do
- rm -rf $VERSIONS_DIR/$version
+ rm -rf $VERSIONS_DIR/${1#v}
shift
done
}
@@ -406,7 +405,7 @@ else
--stable) display_latest_stable_version; exit ;;
bin|which) display_bin_path_for_version $2; exit ;;
as|use) shift; execute_with_version $@; exit ;;
- rm|-) remove_version $2; exit ;;
+ rm|-) shift; remove_versions $@; exit ;;
latest) install_node `n --latest`; exit ;;
stable) install_node `n --stable`; exit ;;
ls|list) display_remote_versions; exit ;;
Please sign in to comment.
Something went wrong with that request. Please try again.