Koen Punt
1a19de9d20
Use has util method and use comparison opts
2014-03-15 15:59:46 +01:00
Jordan Harband
ba2a850253
Adding a CONTRIBUTING.md file
2014-03-14 23:21:31 -07:00
Jordan Harband
618a372f38
Unset the executable bit on nvm.sh, since it's meant to be sourced
2014-03-14 22:10:52 -07:00
Jordan Harband
a09a028c38
Merge pull request #270 from hachre/patch-1
...
Switch from /bin/sh to /bin/bash
2014-03-14 22:10:07 -07:00
Jordan Harband
d78905988e
Merge pull request #310 from danieltdt/grep-options
...
Overwritting GREP_OPTIONS on local script
2014-03-14 13:10:56 -07:00
Daniel Teixeira
8cceae3cc1
Overwritting GREP_OPTIONS on local script
...
(recommiting to automerge into current master)
2014-03-14 14:58:51 -03:00
Jordan Harband
192e381971
Merge pull request #370 from jpadilla/patch-1
...
Detect if curl or wget is installed to download NVM_SOURCE
2014-03-13 14:26:44 -07:00
José Padilla
966ff0e1b0
Fix for running with bash, sh, and zsh
2014-03-13 10:31:34 -04:00
José Padilla
b90a0a811e
Use 2-space indentation for consistency
2014-03-12 14:33:00 -04:00
José Padilla
25ca41c9dc
Detect if curl or wget is installed
2014-03-12 09:07:48 -04:00
Jordan Harband
0d44ed1126
Merge pull request #364 from frasertweedale/fix/portability
...
Fix/portability
2014-03-04 17:31:17 -08:00
Jordan Harband
dc53a37d4f
Merge pull request #277 from frasertweedale/fix/freebsd-sha1
...
support FreeBSD's sha1(1) for integrity checks
2014-02-27 01:25:23 -08:00
Fraser Tweedale
332ae1afcb
use a more portable release in install tests
...
The tests for nvm install currently install v0.8.6, which doesn't
build on FreeBSD due to Linuxisms. Switch to a more recent version
that does work.
2014-02-22 12:20:15 +10:00
Fraser Tweedale
9108a7f7fa
remove duplicate install test
...
`test/slow/install` is identical to `test/slow/install from source`
except in the version installed. Remove it.
2014-02-22 12:20:15 +10:00
Fraser Tweedale
3b21b76106
fix install from source on FreeBSD 10
...
Compile with CXX=c++ on FreeBSD, as FreeBSD >= 10.0 no longer has
GCC in the base system (c++ is hardlinked to clang++ on FreeBSD 10.0
and g++ on FreeBSD < 10).
2014-02-22 11:58:39 +10:00
Fraser Tweedale
dcba513108
address remaining comments from #363
2014-02-22 11:25:45 +10:00
Fraser Tweedale
e6a5374bfb
colorize output only if echo supports it
2014-02-22 00:06:53 +10:00
Fraser Tweedale
8cba9c5781
avoid nullglob in alias command
2014-02-22 00:00:10 +10:00
Fraser Tweedale
1d6145de5a
fix explicit version matching on FreeBSD
...
FreeBSD's regular expression library does not like the pattern used
for matching explicit version strings in `nvm_ls`. Change the
pattern to something more specific that works on FreeBSD.
2014-02-21 23:25:45 +10:00
Fraser Tweedale
ca0c8a7f1d
handle echo implementations that do not support `-e`
2014-02-21 22:10:17 +10:00
Fraser Tweedale
21771e7369
fix logic error in nvm deactivate test
2014-02-21 21:06:53 +10:00
Fraser Tweedale
a3331ffdb0
fix errors due to use of unportable == operator
...
The `==` operator is not defined by POSIX and many test(1) (also
spelled `[`) implementations do not support it. Replace uses of
`==` with the POSIX-conformant `=` equality operator.
2014-02-21 21:05:40 +10:00
Fraser Tweedale
4a5f5203d0
fix errors and portability issues in expr commands
...
Add double-quotes around all expr(1) left-hand-sides where the
argument is just a variable, to prevent syntax errors when the
variable is empty.
Also avoid the `expr match ...` variant as this is not defined in
POSIX and causes errors in some implementations, including
FreeBSD's.
2014-02-21 20:52:50 +10:00
Fraser Tweedale
ee6d4ab074
fix ls command in dash
...
The `colorize_version` command fails in dash (default /bin/sh on
Ubuntu) with an error like:
local: v0.2.3: bad variable name
Instead of using a local variable, interpolate the function argument
directly to avoid the error.
2014-02-21 20:24:27 +10:00
Fraser Tweedale
8925419e90
tests: avoid reliance on nullglob
...
Some shells do not have a nullglob feature, including dash (default
/bin/sh on Ubuntu) and the Almquist shell (default /bin/sh on
FreeBSD). An mv(1) command in setup_dir is failing due to a glob
not matching anything, so use a more widely supported construction.
2014-02-21 19:21:03 +10:00
Dr. Kibitz
0f709eafa0
Missed tests
2014-02-18 22:07:25 -08:00
Dr. Kibitz
a9be598241
Remove some new bashisms
2014-02-18 21:57:59 -08:00
Dr. Kibitz
9a0c269713
Redo https://github.com/creationix/nvm/pull/345
2014-02-18 21:51:39 -08:00
Fraser Tweedale
0c8410fcc3
support FreeBSD's sha1(1) for integrity checks
...
In the absense of shasum(1) (which on FreeBSD is provided by Perl,
from ports) nvm falls back to sha1sum(1) which does not exist on
FreeBSD. But FreeBSD does have sha1(1) so look for sha1(1) and use
it if present.
As part of this change, refactor the execution of the checksum
program down into nvm_checksum and also clean up some special-casing
of empty dist checksums, which is already handled by nvm_checksum.
2014-02-18 22:22:46 +10:00
Jordan Harband
12d7b6fa0c
Merge pull request #361 from drkibitz/local-vars
...
Declare more variables as local
2014-02-16 11:20:21 -08:00
Jordan Harband
274652e10e
Fix nvm ls-remote and display uninstalled versions again. Fixes #359 , closes #360
2014-02-16 09:35:05 -08:00
Dr. Kibitz
2e9558cbf9
Declare more variables as local
2014-02-16 01:05:24 -08:00
Jordan Harband
13781f242b
Create a `colorize_version` function that doesn't include the padding, for `nvm version`
2014-02-15 18:12:24 -08:00
Jordan Harband
b6469ee186
Preventing an extra leading newline.
2014-02-15 18:12:24 -08:00
Jordan Harband
304cc29cf0
Fixing indentation and adding a trailing newline.
2014-02-15 16:02:27 -08:00
Jordan Harband
0d5ee024d1
Merge pull request #356 from geekjuice/master
...
Change variable name to fix zsh parse issue
2014-02-11 20:38:09 -08:00
Nicholas Hwang
9a88e3656c
Change variable name to fix zsh parse issue
2014-02-11 22:55:02 -05:00
Jordan Harband
c19535a3f5
Merge pull request #354 from simontabor/patch-1
...
don't curl if version is specified + installed
2014-02-07 10:32:23 -08:00
Simon Tabor
9af7409e4a
don't curl if version is specified + installed
...
Removes CURL to match the version pattern if an explicit version (e.g. `v0.10.25`) is specified and already installed.
2014-02-06 13:02:57 +00:00
Jordan Harband
eca6118023
Merge pull request #352 from gdi2290/patch-1
...
update copyright year range in readme
2014-02-03 19:30:52 -08:00
PatrickJS
50485d641b
update copyright year range in readme
2014-02-03 17:07:56 -08:00
Jordan Harband
cd378cb170
Merge pull request #351 from gdi2290/patch-1
...
update copyright year range
2014-02-03 14:27:25 -08:00
PatrickJS
db7e0976f2
update copyright year range
2014-02-03 13:41:27 -08:00
Jordan Harband
ecb7a15baa
Using our conventional NVM_ prefix for env vars.
...
Per https://github.com/creationix/nvm/pull/245#issuecomment-33821443
2014-01-31 10:01:37 -08:00
Jordan Harband
5f225cd625
Merge pull request #245 from rgbkrk/mirror_z
...
Add mirror option for node binaries. Relates to #255 .
2014-01-30 21:25:46 -08:00
Kyle Kelley
8599ea29f9
Add dist to path, add docs
2014-01-30 19:22:44 -08:00
Kyle Kelley
b1d0cfa77b
Added mirror option for node binaries
2014-01-30 19:16:36 -08:00
Jordan Harband
a0a2ee4414
Merge pull request #349 from zyxar/master
...
Fixes #346
2014-01-14 21:59:30 -08:00
Markus Z
60e66fa7be
Fixes #346
2014-01-15 12:48:08 +08:00
Jordan Harband
45eff43cd0
Merge pull request #342 from txgruppi/master
...
export NODE_PATH on nvm use
2014-01-13 21:08:17 -08:00