Overwritting GREP_OPTIONS on local script

(recommiting to automerge into current master)
master
Daniel Teixeira 2014-03-14 14:58:51 -03:00
parent 192e381971
commit 8cceae3cc1
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -100,6 +100,7 @@ nvm_ls() {
nvm_ls_remote() {
local PATTERN=$1
local VERSIONS
local GREP_OPTIONS=''
if [ "$PATTERN" ]; then
if echo "${PATTERN}" | \grep -v '^v' ; then
PATTERN=v$PATTERN
@ -170,6 +171,7 @@ nvm() {
local uname="$(uname -a)"
local os=
local arch="$(uname -m)"
local GREP_OPTIONS=''
case "$uname" in
Linux\ *) os=linux ;;
Darwin\ *) os=darwin ;;