Koen Punt
0f05655ee6
Return 1 so exit status is not null on error
2013-06-03 22:26:52 +03:00
Tim Caswell
6b932e59c3
Remove column since many common environments don't have it.
2013-06-03 10:08:13 -04:00
Miguel Cobá
335456d008
Drop invalid -a flag for basename.
...
basename doesn't accept options in bash. This causes the VERSIONS variable get the 'N/A' value for $ nvm ls command.
From basename man page:
NAME
basename - strip directory and suffix from filenames
SYNOPSIS
basename NAME [SUFFIX]
basename OPTION
DESCRIPTION
Print NAME with any leading directory components removed. If specified, also remove a trailing SUFFIX.
--help display this help and exit
--version
output version information and exit
coreutils version used in Linux Mint 14 Nadia.
GNU coreutils 8.12.197-032bb September 2011 BASENAME(1)
No idea if this flag exists on FreeBSD or other unixes (if they use gnu coreutils shouldn't be any problem)
2013-05-09 13:50:12 -04:00
Emanuele Aina
42915fc21c
Reduce usage of `cd' to avoid issues with shell aliases
...
Since we run in interactive context the builtin `cd' may have been aliased to
print some additional info when invoked, thus it's safer for us to avoid
parsing the output from subshells which calls it.
For instance in .bash_profile I have the following function to redefine
`cd' such that it will list the destination directory contents:
cd () { builtin cd "$@" && ls -F --color=auto }
2013-05-03 17:44:02 +01:00
Emanuele Aina
f1b484ee87
Silence stderr warning on `nvm uninstall' with no configured alias
2013-05-03 17:42:14 +01:00
Tim Caswell
6c3708d337
Merge pull request #195 from gpad/patch-1
...
Resolved Issue #194
2013-04-24 09:03:36 -07:00
jnlin
db7494494c
Add FreeBSD support
2013-04-24 15:42:10 +08:00
GPad
5811cb9e73
Resolved Issue #194
...
Issue #194
2013-02-11 19:23:25 +01:00
GPad
7226e5fb98
read the .nvmrc if present
2013-01-25 19:13:40 +01:00
GPad
bc9c82cb9f
read version from .nvmrc if not specified
2013-01-22 13:28:13 +01:00
Tim Caswell
f605581c7d
return not exit
2013-01-21 12:07:54 -06:00
Koen Punt
70e1b81ad3
Add exit code, fix #190
2013-01-21 17:26:16 +01:00
Yosiya Hinosawa
a6be969403
changed shasums file url because in v0.8.6 .txt.asc file is not available.
2013-01-13 16:13:20 +09:00
Yosiya Hinosawa
184f641730
fixed the condition for the binary package availability.
2013-01-13 16:10:50 +09:00
Yoshiya Hinosawa
7013372867
added -s (install from source) option.
2013-01-12 14:42:28 +09:00
A.J
5596054445
fixed wrong condition checking for 'shasum' (I'm using Mac OS 10.8.2)
...
line 188, `which shasum > /dev/null 2>&1` will be replaced by:
'/usr/bin/shasum > /dev/null 2>&1'
but, `/usr/bin/shasum` needs filename argument which is ommited and the
test results always 'false'.
2012-12-09 05:17:13 +09:00
Tim Caswell
68f7dc9cb3
Merge pull request #171 from cou929/support_sha1sum_command
...
support platforms which does not have shasum command
2012-12-04 17:46:04 -08:00
Marsup
2662840064
Fix #172 on ZSH
2012-11-27 23:46:04 +01:00
Kosei Moriyama
1a08edd94e
support platforms which does not have shasum command
...
use sha1sum command if there is no shasum command
2012-11-24 00:08:49 +09:00
Sebastian Cohnen
0803e317e1
avoid environment pollution with NVM internals
2012-11-20 15:32:59 +01:00
hisanori
4ffd4bb34f
fix installation problem about v0.4
2012-10-27 04:09:10 +09:00
wlaurance
21f00362b0
Account for x86 architectures
2012-10-25 15:39:08 -04:00
wlaurance
a1d14ea5b8
Checksum support for binary downloads
...
Checksum support for source downloads
Closes #159
2012-10-23 14:26:21 -04:00
wlaurance
03b16d7a67
Account for uname -a i686
2012-10-23 12:19:42 -04:00
Joel Wietelmann
182e28f1ae
Making ARM stop downloading x86 binaries
2012-10-18 21:19:08 +00:00
Tim Caswell
d9f25f8f58
Merge pull request #96 from caio/dont-fail-on-source
...
Avoid carrying over test status when no node version is installed
2012-10-17 09:41:43 -07:00
Tim Caswell
b73f0930cc
Merge pull request #106 from ghost/master
...
nodejs.org doesnt seem to support resuming partial downloads
2012-10-17 09:40:27 -07:00
Tim Caswell
3766bff734
Merge pull request #148 from nathan-lafreniere/master
...
Fixes ls-remote with no parameters in linux
2012-10-17 07:27:28 -07:00
Marsup
a0c4229abe
Support binary installs
...
Heavily inspired by isaacs/nave
2012-10-12 09:39:35 +02:00
Koen Punt
4a6c696074
Made string comparison also compatible for zsh
2012-10-09 13:36:44 +02:00
Nathan LaFreniere
a368227237
make ls-remote work with no parameters in linux
2012-10-07 17:19:53 -07:00
Nathan LaFreniere
e1be38f90d
fixup automatically prepending the v for remote requests
2012-10-05 11:39:38 -07:00
Nathan LaFreniere
9fb65cbf7b
add v back to ls-remote results
2012-10-04 11:10:31 -07:00
Nathan LaFreniere
693abf3173
make install use a different nvm_version to make not specifying the v avoid clobbering aliases
2012-10-04 10:32:36 -07:00
Nathan LaFreniere
e755c47d5a
made ls-remote actually usable
2012-10-04 09:41:32 -07:00
Nathan LaFreniere
3d65d55b5a
install requested version automatically if it isnt available
2012-10-04 09:40:00 -07:00
Nathan LaFreniere
6505c98461
add ls-remote
2012-10-04 09:38:51 -07:00
Nathan LaFreniere
ebff66649e
add v to version if user does not specify it to simplify commands
2012-10-04 09:36:39 -07:00
Nathan LaFreniere
07aaa91c9b
Revert "add /.nvm to NVM_DIR so we dont clutter up home directories"
...
This reverts commit a107b12d2a
.
2012-10-04 09:29:05 -07:00
Nathan LaFreniere
a107b12d2a
add /.nvm to NVM_DIR so we dont clutter up home directories
2012-10-04 09:28:32 -07:00
Bill Caputo
2adbe8bd7f
changed npm url to use https (script has moved)
2012-10-03 16:24:43 -05:00
Matthew Metnetsky
d68c38902a
Fix warning when unsetopt isn't found
2012-08-22 14:19:18 -04:00
rummik
ad5242ea0b
Fix parse error in Zsh 4.3.17
2012-08-20 18:02:38 -03:00
Aravind Ramanathan
3bb2634d2f
Added check for unsetopt
...
unsetopt doesn't exist on OSX by default which causes `. nvm.sh` to
fail at that line.
2012-08-07 23:22:27 -07:00
Tim Caswell
e475d7e7ab
Fix bug introduced by pull # 125
2012-08-01 12:48:41 -05:00
fatshotty
f8c1822033
added additional options for compiling node
2012-08-01 11:10:25 +02:00
Tomas Sedovic
3dd6b29905
Supress ZSH "no matches found" error
...
Fixes issue #39
ZSH's default globbing behaviour differs from Bash. If there is no
match, ZSH itself will print the error message.
This means that piping a commantd's STDERR to /dev/null will not
hide it.
By unsetting the NOMATCH option we get a behaviour similar to Bash.
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
2012-07-07 14:37:09 +02:00
Gerhard Lazu
d544d8e2eb
If you're using set -e (and why wouldn't you), this halts all execution
2012-07-03 10:41:15 +01:00
Gerhard Lazu
3e62657575
If cd fails, don't run pwd
...
Whitespace...
2012-07-03 10:36:23 +01:00
Wtfcoder
a86262520a
remove continue from curl arg. nodejs.org doesnt seems to support continue, CDN effect perhaps?
2012-03-13 11:51:05 +07:00