Commit Graph

1108 Commits (49f2c950134631c18427387f89471ae42609e89e)

Author SHA1 Message Date
Jordan Harband cf1110ecea Quote $NVM_DIR in commands 2014-09-23 23:46:23 -07:00
Jordan Harband 34b97bf76d Adding shell var quotes in `nvm alias` 2014-09-23 17:23:37 -07:00
Jordan Harband b962a590a2 Removing an extra mkdir -p 2014-09-23 17:23:09 -07:00
Jordan Harband ddb25ed5a3 Merge pull request #530 from creationix/copy_packages_from_on_install
nvm install: Add --copy-packages-from option
2014-09-21 18:57:04 -07:00
Jordan Harband 486d14f5f8 Copy packages when applicable, whenever `nvm install` would normally `nvm use` and exit. 2014-09-21 18:25:15 -07:00
Jordan Harband 622fdd2cd0 Error out early if the --copy-packages-from version is invalid. 2014-09-21 18:03:11 -07:00
Jordan Harband eddbe15ee8 Extract --copy-packages-from argument. 2014-09-21 18:03:11 -07:00
Jordan Harband 2e161fe414 nvm install: Remove this redundant "already installed" check. 2014-09-21 11:22:05 -07:00
Jordan Harband a42b90d215 Adding some helpful output to `nvm copy-packages` 2014-09-21 11:02:03 -07:00
Jordan Harband 6bae6c07f2 Merge pull request #528 from creationix/remove_last_expr
Remove last usages of `expr`
2014-09-19 12:37:33 -07:00
Jordan Harband 7fd6d05426 Instead of using expr to check if paths need cleaning, compare cleaned paths to original paths and export appropriately. 2014-09-19 10:10:53 -07:00
Jordan Harband 5ef092b2c8 Using `nvm_version_greater` and `nvm_version_greater_than_or_equal_to` instead of `expr` in `nvm install`. 2014-09-19 10:10:37 -07:00
Jordan Harband cb6456fd85 Using `nvm_version_greater_than_or_equal_to` instead of `nvm_version_greater` where it increases readability. 2014-09-19 10:10:01 -07:00
Jordan Harband 991fb85047 Adding `nvm_version_greater_than_or_equal_to` 2014-09-19 10:09:45 -07:00
Jordan Harband edf36a8ea7 Merge pull request #526 from creationix/add_nvm_num_version_groups
Replace `expr` with `nvm_num_version_groups`
2014-09-16 10:13:57 -07:00
Jordan Harband 35466187f2 Noting the changed behavior of `nvm ls vx.y.` to return something useful. 2014-09-16 09:03:48 -07:00
Jordan Harband c992b1766c Use `nvm_num_version_groups` in `nvm_ls` 2014-09-16 09:03:47 -07:00
Jordan Harband 4b2bc0be08 Adding `nvm_num_version_groups` 2014-09-16 09:03:47 -07:00
Jordan Harband 15b3e7b6a8 Removing unnecessary cleanup in "Listing Versions" tests. 2014-09-16 09:03:47 -07:00
Jordan Harband 8d05ab63f1 Silencing error output in the "Listing Versions" teardown script. 2014-09-16 09:03:47 -07:00
Jordan Harband da693eaea1 Tweaking nvm_ls_current tests. 2014-09-16 09:03:47 -07:00
Jordan Harband 5363ff8916 Merge pull request #525 from creationix/add_unit_tests
Add unit tests
2014-09-15 20:46:31 -07:00
Jordan Harband e186fa27a7 Use `nvm_version_greater` in `nvm_binary_available` 2014-09-15 09:20:47 -07:00
Jordan Harband f6e0104685 Use `nvm_normalize_version` in `nvm_version_greater` 2014-09-15 09:17:41 -07:00
Jordan Harband 97d4e2f88f Unit tests: add `nvm_find_up` 2014-09-15 09:09:56 -07:00
Jordan Harband e0a22ccf4a Unit tests: add `nvm_has` 2014-09-15 09:09:51 -07:00
Jordan Harband d5d66c34d9 If there's no "default" specified, fall back to an .nvmrc file. 2014-09-15 07:54:30 -07:00
Jordan Harband 152904e3fb Return a nonzero exit code from nvm_rc_version when no .nvmrc found 2014-09-15 07:51:00 -07:00
Jordan Harband 64de890d07 v0.16.1 2014-09-14 22:24:18 -07:00
Jordan Harband a4da8a48ef Merge pull request #524 from creationix/run_installation_tests_separately
Run installation tests separately
2014-09-14 22:21:02 -07:00
Jordan Harband 354be52672 Correct installation test paths 2014-09-14 18:01:55 -07:00
Jordan Harband ad604cc068 Only run the "installation" tests both with and without curl. 2014-09-14 17:25:17 -07:00
Jordan Harband ba08fa31d8 Moving actual installation tests to their own suite. 2014-09-14 17:24:30 -07:00
Jordan Harband 13aadbcf31 Run slow tests in ksh too 2014-09-14 16:42:23 -07:00
Jordan Harband 7bb6e9c915 Merge pull request #523 from creationix/run_slow_nvmrc_tests_too
Actually run all tests; fix some bugs
2014-09-14 16:38:12 -07:00
Jordan Harband 3d3145f2e0 install: don't output "additional options" when there are none. 2014-09-14 16:04:51 -07:00
Jordan Harband 4c948cf422 install: Ensure that if a version is not provided, we don't try to shift a nonexistent argument. 2014-09-14 16:04:37 -07:00
Jordan Harband f8054d5cae copy-packages: ensure that `nvm_version` is also applied to compare the provided version to the current one. 2014-09-14 16:04:25 -07:00
Jordan Harband ad2713b13a `&>` is a bash-specific extension for redirecting both stdout and stderr. 2014-09-14 16:04:13 -07:00
Jordan Harband 243fc04164 Fixing these test files that have never been run 2014-09-14 16:04:04 -07:00
Jordan Harband a80f958a1e All 4 of these test files should be executable. 2014-09-14 16:03:55 -07:00
Jordan Harband f6fef75f36 Use git in manual install instructions to determine the latest release tag, rather than hardcoding it.
Per 199ba53340
2014-09-13 11:37:19 -07:00
Jordan Harband 199ba53340 Fixing manual install instructions to use the version tag. Relates to #520 2014-09-13 00:59:09 -07:00
Jordan Harband d1b6332bbe v0.16.0 2014-09-11 00:58:09 -07:00
Jordan Harband 159d4c645e Merge pull request #518 from creationix/nvm_copy_packages_system
Make `nvm copy-packages system` work
2014-09-05 09:05:27 -07:00
Jordan Harband 687df82107 Make `nvm copy-packages system` work. 2014-09-05 00:43:12 -07:00
Jordan Harband ff1781b95d Make `nvm copy-packages` refuse to copy packages from the currently activated version. 2014-09-05 00:42:59 -07:00
Jordan Harband 110e571c34 Make `nvm ls system` work. 2014-09-05 00:29:20 -07:00
Jordan Harband a7108e98f2 Make .bashrc be checked first on install.
From #511. Closes #320. Closes #268. Closes #334. Fixes #497. Relates to
2014-09-04 00:54:50 -07:00
Jordan Harband 30b044a368 Merge pull request #511 from 16BITBoy/bashrc-support
Fix for nvm not being sourced to bash when using gnome-terminal in Ubuntu 14.04
2014-09-04 00:53:23 -07:00