Commit Graph

249 Commits (d1a22a63bd38c0392393044354297e5ca02bc0cf)

Author SHA1 Message Date
Jordan Harband 63f72b37df Followup per https://github.com/creationix/nvm/pull/452#issuecomment-48151847 2014-07-07 15:40:59 -07:00
Jordan Harband cf5bfecec4 Merge pull request #452 from creationix/curl_wget_handling
Better combo curl/wget handling
2014-07-07 15:03:31 -07:00
Jordan Harband e4ada9fa43 Revert part of the change from e0537ce3df, fixes #458 2014-07-07 14:22:49 -07:00
Koen Punt a0de15d0f7 fix nvm_curl arguments for stdout 2014-07-07 23:16:20 +02:00
Jordan Harband df4689fbd2 Removing an extra "echo" 2014-07-07 13:59:58 -07:00
Jordan Harband 018e47bec0 Make sure both wget and curl work. 2014-07-07 13:32:10 -07:00
Jordan Harband 74cc1eb022 Make `nvm_curl` do a runtime check if `curl` is available. 2014-07-07 13:32:10 -07:00
Jordan Harband eda8ffbcc4 Add some more curl → wget argument munging 2014-07-07 13:32:10 -07:00
Jordan Harband 25c0be1e20 Using an `nvm_curl` function instead of `curl`/`wget` directly. 2014-07-07 13:32:10 -07:00
Koen Punt ea198c9a19 add newline to printf 2014-07-07 14:43:02 +02:00
Jordan Harband e0537ce3df Shellcheck recommendations. 2014-07-05 13:48:23 -07:00
Jordan Harband cce5df35ba Naming `install.sh` functions more explicitly as being for `nvm`. 2014-07-05 13:44:00 -07:00
Jordan Harband 7e269961c3 In `install.sh`, rename `has` to `nvm_has` for consistency with `nvm.sh`. 2014-07-05 13:42:44 -07:00
Jordan Harband f214ffaf1f Oxford comma 2014-07-05 11:07:14 -07:00
Jordan Harband b6f1c156da Use printf instead of `echo -e`
Fixes #446
2014-06-26 10:26:57 -07:00
Koen Punt 16c0be8314 export NVM_DIR before sourcing nvm.sh 2014-05-28 14:32:01 +02:00
Bent Cardan 13b87449e8 github raw served from new subdomain 2014-04-26 03:48:06 -04:00
Koen Punt 5342b6a04c Emulate curl with wget 2014-03-26 11:14:09 +01:00
Koen Punt 2d0c025c49 Prevent fallback 2014-03-26 11:14:08 +01:00
Koen Punt 6ed93f4c01 Force install method by setting METHOD=git/script 2014-03-26 11:14:08 +01:00
Koen Punt 3c2719a85e fix 2014-03-26 11:14:08 +01:00
Koen Punt c47f03f996 Display error when unable to update 2014-03-26 11:11:26 +01:00
Koen Punt 300022642a git, curl and wget now all in one installer 2014-03-25 20:53:05 +01:00
Koen Punt 7211c9ee29 updated output without special characters (tab; \t)
Omit duplicate 'finish line'
normalized indentation
2014-03-25 20:51:39 +01:00
Koen Punt 246caa8581 Updated source string, use hard path as NVM is not always installed in `$HOME/.nvm` 2014-03-25 20:51:39 +01:00
Koen Punt 1fac49f887 replaced undocumented option for specifying the profile as first argument to specifying it as a environment variable (eg: PROFILE=~/.myprofile ./install-gitless.sh)
also; fixed indentation and added .zshrc as possible profile
2014-03-25 20:51:39 +01:00
Koen Punt d2422a623a made NVM_DIR and NVM_SOURCE configurable using environment variables 2014-03-25 20:51:39 +01:00
Koen Punt 0787a55999 replaced fatalExit function for 'inline' exit
exit on errors (set -e)
simplified if for NVM_DIR and NVM_SOURCE, corrected indentation
2014-03-25 20:51:39 +01:00
Jordan Harband 3a21485050 Files should end in trailing newlines 2014-03-15 11:41:50 -07:00
Markus Z 60e66fa7be Fixes #346 2014-01-15 12:48:08 +08:00
Mario Idival 6e1c249ecd For zsh users
i use zsh and i did this update in install.sh local, is good for you too :)
2013-10-10 14:30:53 -03:00
Fraser Tweedale ef7e3cc39a install.sh: use a more generic SOURCE_STR
SOURCE_STR currently includes the value of $HOME (at install time).
Change SOURCE_STR to include a literal "$HOME" (to be expanded at
profile runtime) so that sourcing nvm will work if the user changes
their username, shares their profile, et cetera.

Also use the more portable single-square-bracket test.
2013-09-22 14:58:19 +10:00
Jordan Harband e6116d96ab Mentioning `install-gitless.sh` in the "no git" error message - finishing off #246. 2013-09-21 12:58:01 -07:00
Dennis Dryden 34a067647c Add check for git to install script. 2013-09-09 14:35:30 +01:00
Antti Vähäkotamäki 81d731d355 better guides for missing profile 2013-07-26 14:58:47 +03:00
Tim Caswell 855d89bef0 Merge pull request #251 from stelcheck/NVM_DIR
* NVM_TARGET renamed to NVM_DIR
2013-06-14 06:01:23 -07:00
stelcheck c5437bb222 * NVM_TARGET renamed to NVM_DIR (this will ensure that any locally
* existing nvm copy will be picked up and updated)
2013-06-14 16:20:36 +09:00
Ron Korving dc46a740a3 Fix newline issue in install.sh 2013-06-14 15:10:59 +09:00
Ron Korving 93e84a2676 Moved gitless installer into its own file. 2013-06-14 13:13:33 +09:00
Ron Korving 5a4c097aac Install script no longer depends on git to be installed.
Also fixed a bug where a literal "\n" would be injected into the bash profile.
2013-06-14 13:00:52 +09:00
Chip Warden 6c57b275db Changed git protocol from git:// to https:// to work around firewalls. 2013-06-03 17:05:30 -05:00
Ryuichi Okumura 9205ff8001 Remove `-e` option in `install.sh` script
The `sh` actually doesn't support `-e` option.
2013-05-14 00:05:53 +09:00
Artem 9c7da6cec3 Adding a newline before the source string in the ".bash_profile"
Resolved Issue #197
2013-02-27 11:50:08 +02:00
Koen Punt dc2bf8c526 Fixed variable expansion for `SOURCE_STR` 2012-12-04 23:26:49 +01:00
Witold Szczerba 2f6b0ca9d7 Update install.sh
$HOME/.nvm used instead of introduced earlier NVM_TARGET.
2012-12-04 21:36:12 +01:00
Koen Punt 3c4bf80ec7 added basic install file 2012-10-30 00:04:52 +01:00
Tim Caswell c10ca74b5b NVM shouldn't really be a NPM module 2011-05-05 13:55:09 -07:00
Tim Caswell 924d965964 Clean up npm integration a little bit
Change-Id: I849f1056d0188aef264777e18270728b1535f61c
2010-12-10 12:43:27 -08:00
isaacs b82bcfbd47 A package.json install that works.
It's an ugly hack, but it works.
2010-12-10 11:44:58 -08:00