The sed option -E is not supported in centos. Change to -e

This commit is contained in:
Jay Perry 2014-05-06 15:43:05 -04:00
parent 7f3a794d89
commit d40bdc907a
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -98,7 +98,7 @@ nvm_format_version() {
}
nvm_strip_path() {
echo "$1" | sed -E "s#$NVM_DIR/[^/]*$2[^:]*:?##g"
echo "$1" | sed -e "s#$NVM_DIR/[^/]*$2[^:]*:?##g"
}
nvm_binary_available() {