Use sed -e instead of -E

This commit is contained in:
Koen Punt
2014-05-07 10:58:18 +02:00
parent 7f3a794d89
commit b313f62749
+1 -1
View File
@@ -98,7 +98,7 @@ nvm_format_version() {
} }
nvm_strip_path() { nvm_strip_path() {
echo "$1" | sed -E "s#$NVM_DIR/[^/]*$2[^:]*:?##g" echo "$1" | sed -e "s#$NVM_DIR/[^/]*$2[^:]*##g" | sed -e "s/::/:/g" | sed -e "s/:$//g"
} }
nvm_binary_available() { nvm_binary_available() {