Commit Graph

219 Commits (e7a5b7992bb6bb27873367c59d72ecc96d07fc6f)

Author SHA1 Message Date
Peter Dave Hello 68761c3200 Manually run git gc after nvm installation, fix #1226 2016-09-17 13:24:04 +08:00
Jordan Harband 63fe22d635
v0.32.0 2016-09-15 15:02:56 -07:00
Jordan Harband 25fa40e7cb
v0.31.7 2016-09-02 23:43:04 -07:00
Jordan Harband 68bf93514b
[Fix] when originally installed without git, ensure it can be upgraded to use git.
Fixes #1212. Closes #1213.
2016-08-25 00:59:32 -07:00
Jordan Harband 85c5e12710 [Refactor] `install.sh`: use curlies in a few places. 2016-08-24 00:50:08 -07:00
Jordan Harband 31c68adbcf
v0.31.6 2016-08-23 14:36:15 -07:00
Aria Stewart 451b67fe78 Revert %s-formatting for SOURCE_STR when writing to shell profile 2016-08-23 17:32:28 -04:00
Jordan Harband d179810b25
v0.31.5 2016-08-23 11:12:21 -07:00
Jordan Harband 681c81ad30 [shellcheck] clean up `install.sh` 2016-08-23 00:45:38 -07:00
Peter Dave Hello 364096a3c3 Add trailing newline char to $SOURCE_STR
Line 302/301 `printf "$SOURCE_STR"` is missing a trailing newline char,
while line 281/282 and 285/286 have their own new line char, so I  just
remove the manually added newline char, and add it to the end of the
variable "$SOURCE_STR", so no more manually newline char needed there.
2016-08-05 15:52:01 +08:00
Peter Dave Hello 88fc93a71b Fix nvm dir path in install script, fix #1189 2016-08-05 15:23:09 +08:00
Jordan Harband 31e58d1827
v0.31.4 2016-07-29 16:54:13 -07:00
Luke Childs 978f7b4435 Only source nvm, not entire profile 2016-07-27 22:44:51 +01:00
Luke Childs 3417e9d9a3 Add message explaining how to use nvm 2016-07-27 22:39:50 +01:00
Luke Childs eb4de62bc1 Remove incorrect message 2016-07-27 21:43:13 +01:00
Jordan Harband 56417f88f9
v0.31.3 2016-07-20 00:51:48 -07:00
Owen Smith 8c8bf1204c [Fix] install should not exit after successful git clone
Fixes #1146 by grouping the commands that handle the error.

I also removed a subshell wrapper from a similar set of lines right
above. It looks to me like that is no longer necessary.
2016-07-05 22:03:52 -07:00
Mohit Agarwal 322d81d75f use git options instead of cd in install script 2016-07-06 01:26:06 +05:30
Jordan Harband 43c3c23928 [Fix] install script: remove more unnecessary `cd`ing.
Fixes #1137.
2016-06-30 13:26:31 -07:00
Jordan Harband cb4e010de7 [Fix] install script: Don’t attempt to `cd` twice.
Fixes #1137.
2016-06-30 13:04:45 -07:00
Xavier Cambar a24ff3e605 Optionally installs Node.js if a version is provided 2016-06-29 09:57:30 +02:00
Xavier Cambar 6cee20a071 testing NVM_DIR 2016-06-28 12:36:08 +02:00
Jordan Harband 9f5322ee84
v0.31.2 2016-06-25 09:42:53 -07:00
Jordan Harband ec2f450b6e
v0.31.1 2016-05-09 22:06:43 -07:00
Jordan Harband 2176894a5b v0.31.0 2016-02-15 09:18:15 -08:00
Thomas Levine 0eaa7e0bde use env bash in nvm-exec and install.sh 2016-02-14 19:34:19 +00:00
Sébastien Larivière 649e416017 [Refactor]Double quote to prevent globbing and word splitting. 2016-01-30 22:17:15 -05:00
Jordan Harband 21c3727955 v0.30.2 2016-01-21 00:23:01 -08:00
David Mankin 918fcb4bd2 PROFILE env var should override detected profile
Add tests for PROFILE overriding detected files
2016-01-01 14:00:36 -05:00
Jordan Harband 0aa3118de3 v0.30.1 2015-12-28 12:46:41 -08:00
Dave May 00d4520d35 Merge remote-tracking branch 'creationix/master' into install-fix-quotes 2015-12-28 12:08:57 -05:00
Jordan Harband 8ec056f768 v0.30.0 2015-12-27 23:19:14 -08:00
Dave May f113c5d030 fix quoting for usernames with space 2015-12-28 00:34:38 -05:00
emparq 91ce41b702 [Fix: Install] incorrect check for `"$NVM_DIR/nvm.sh"`
Should be using `-f` if checking for a file.

Closes #887.
2015-10-30 18:48:08 -07:00
Jordan Harband e1c84bae37 v0.29.0 2015-10-09 01:52:19 -07:00
Jordan Harband ebdcdc4363 v0.28.0 2015-10-02 01:50:44 -07:00
Jordan Harband 8aebf86329 v0.27.1 2015-09-27 06:40:29 -07:00
Jordan Harband 39dad845cf Do not exit install.sh on errors (revert part of 0787a559). Fixes #853. 2015-09-27 06:32:00 -07:00
Jordan Harband 838d72688f v0.27.0 2015-09-26 10:13:10 -07:00
Jordan Harband 6e894520ec Use a tighter `grep` to avoid `dnvm.sh` conflicts.
Fixes #838.
2015-09-19 22:55:19 +09:00
Luke Childs bda1d2ec29 Revert "Source the nvm.sh file"
Fixes #826
This reverts commit b4151e1446.
2015-09-12 23:05:56 +01:00
Jordan Harband 26ee4aafc0 v0.26.1 2015-08-22 20:54:31 -07:00
Jordan Harband 49abc9ce02 v0.26.0 2015-08-13 17:10:08 -07:00
Jordan Harband 15876280f7 Remove trailing whitespace. 2015-08-13 17:09:22 -07:00
Cristian Consonni c37dbbecb4 Detect shell type from $SHELL variable instead of .$SHELLrc files 2015-07-19 02:03:15 +02:00
Ionică Bizău b4151e1446 Source the nvm.sh file
Fixes #775. After everything is installed, instead of restarting the terminal, just load the nvm.sh file.
2015-07-06 11:19:48 +03:00
Jordan Harband d78722b284 v0.25.4 2015-05-29 11:11:40 -07:00
Jordan Harband a539cba11e v0.25.3 2015-05-22 15:18:46 -07:00
Jordan Harband 96c96ec714 v0.25.2 2015-05-19 14:05:43 -07:00
Jordan Harband 63672641a5 Add wrapping curly braces to ensure that the entire scripts are downloaded.
If the closing curly brace isn't present, the script will error out.
2015-05-11 01:46:18 -07:00
Jordan Harband ec33e8b720 v0.25.1 2015-05-03 15:31:54 -07:00
Jordan Harband a4f89c6223 Make sure to ignore `~/.curlrc` if it exists. 2015-05-01 02:00:49 -07:00
Jordan Harband eb5cecc970 v0.25.0 2015-04-26 12:58:05 -07:00
Jordan Harband 356ac7a697 install.sh: Ensure that the `--quiet` option is available before trying to use it.
Fixes #738, #657.
2015-04-22 00:40:27 -07:00
Jordan Harband c966204cd6 v0.24.1 2015-04-05 12:55:17 -07:00
Jordan Harband 5802ac3ea7 v0.24.0 2015-03-05 21:35:37 -08:00
Jarrett Chisholm c16919becd - fixed return code of 1 when updating from git 2015-03-05 18:21:46 -05:00
Jordan Harband 758141f41e Remove trailing whitespace 2015-02-22 00:29:25 -08:00
Jordan Harband 3d6b7976e7 Attempt to fix script install - no shadowing $NVM_SOURCE; nvm-exec and nvm.sh should not both use $NVM_SOURCE since they're different URLs.
Fixes #654.
2015-02-11 14:32:25 -08:00
Jordan Harband f0d81e2d33 Revert "install: adding some debugging output"
This reverts commit c8efe3d28a.

Conflicts:
	install.sh
2015-02-09 17:16:56 -08:00
elliottcable 4508f7c33e install: further support for older npm versions 2015-02-08 02:43:05 -06:00
elliottcable ea4264645b install: support `npm`s lower than v2 2015-02-07 21:12:46 -06:00
elliottcable c8efe3d28a install: adding some debugging output 2015-02-07 20:50:10 -06:00
elliottcable 0717d5f995 install: some tweaks and clean-up 2015-02-07 17:17:43 -06:00
elliottcable 6cfc309336 install: Pass global-module check in the absence of npm 2015-02-07 17:17:43 -06:00
elliottcable dd1a9ca6a0 install: Adding global-module check to function resets 2015-02-07 17:17:43 -06:00
elliottcable 4ba7ee5797 install: Show a warning when global packages exist 2015-02-07 17:17:43 -06:00
Jordan Harband 0f1f3ed29c v0.23.3 2015-02-02 20:26:00 -08:00
Jordan Harband 1eaf6b53e4 v0.23.2 2015-01-23 13:53:03 -08:00
Jordan Harband 8822bd719a v0.23.1 2015-01-23 02:08:36 -08:00
Jordan Harband 2d9494af45 Clarifying install messages, to help with #559 and https://github.com/creationix/nvm/issues/400#issuecomment-71043828 2015-01-22 10:21:04 -08:00
Jordan Harband 43a7d78693 v0.23.0 2015-01-19 22:15:06 -08:00
Jordan Harband 448bd38a55 v0.22.2 2015-01-14 15:44:40 -08:00
Jordan Harband bf794ff8da Consistently prefix builtins with `command` 2015-01-11 11:53:24 -08:00
Jordan Harband 0a142b7e7a v0.22.1 2015-01-10 19:43:36 -08:00
Jordan Harband 3fc82d6b2f Use `command sed` for people who alias `sed`.
Fixes #493.
2015-01-09 01:50:05 -08:00
Jordan Harband 8328741792 Removing an unnecessary `return $?` 2014-12-28 22:29:26 -08:00
Jordan Harband 8e45afb9f1 Move the version to a single location, nvm_latest_version. 2014-12-28 15:59:06 -08:00
Jordan Harband fd2fb24b03 Refactor `nvm_source` a bit. 2014-12-28 15:55:44 -08:00
Jordan Harband c91e8d0ba2 v0.22.0 2014-12-26 16:30:21 -08:00
Jordan Harband bef3a5ce3a v0.21.0 2014-12-22 12:03:33 -08:00
Jordan Harband b3178ca925 Add "--quiet" to git commands post-install.
Mentioned in #595.
2014-12-18 10:37:10 -08:00
Jordan Harband 8964cb46d3 v0.20.0 2014-11-29 11:23:16 -08:00
Jordan Harband 7bbcd3a977 v0.19.0 2014-11-23 14:49:38 -08:00
Jordan Harband 689c52c90d Install nvm-exec as well when installing via script.
Fixes #553.
2014-11-22 10:34:20 -08:00
Jordan Harband 5904d41b25 Fixing a bug in install_as_script, from 516e553093 2014-11-22 10:29:48 -08:00
Xavier Cambar 516e553093 Refactors NVM_SOURCE 2014-11-06 22:35:24 +01:00
Jordan Harband 5f5eb47f14 v0.18.0 2014-11-05 10:59:59 -08:00
Xavier Cambar b9f15b0ab0 Tests for PROFILE detection 2014-10-29 18:50:04 +01:00
Xavier Cambar 3cdec8e875 Testable install script
* wraps main code into a function
* EnvVar-based install start
* Clean environment after install
2014-10-28 11:44:01 +01:00
Jordan Harband 4748b3a236 v0.17.3 2014-10-20 15:48:49 -07:00
Jordan Harband f0471acbf5 v0.17.2 2014-09-29 14:32:44 -07:00
Jordan Harband 145da7eef8 v0.17.1 2014-09-26 23:22:56 -07:00
Jordan Harband 5ad00f13fa Suppress error messages in case there's no `master` branch.
Fixes #533.
2014-09-25 22:10:48 -07:00
Jordan Harband 53f9841c6c v0.17.0 2014-09-24 14:58:07 -07:00
Jordan Harband 4f081ce4be Collapsing some if/else conditions with elif 2014-09-23 23:48:31 -07:00
Jordan Harband db0051753a Compare shell variable contents with a sentinel. 2014-09-23 23:47:17 -07:00
Jordan Harband cf1110ecea Quote $NVM_DIR in commands 2014-09-23 23:46:23 -07:00
Jordan Harband 64de890d07 v0.16.1 2014-09-14 22:24:18 -07:00
Jordan Harband d1b6332bbe v0.16.0 2014-09-11 00:58:09 -07:00