Make sure `nvm debug` doesn't use an overridden `sed`

Jordan Harband 2015-10-08 00:19:53 -07:00
parent 7028e5df19
commit a0e94e16de
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -1402,9 +1402,9 @@ nvm_sanitize_path() {
local SANITIZED_PATH local SANITIZED_PATH
SANITIZED_PATH="$1" SANITIZED_PATH="$1"
if [ "_$1" != "_$NVM_DIR" ]; then if [ "_$1" != "_$NVM_DIR" ]; then
SANITIZED_PATH="$(echo "$SANITIZED_PATH" | sed "s#$NVM_DIR#\$NVM_DIR#g")" SANITIZED_PATH="$(echo "$SANITIZED_PATH" | command sed "s#$NVM_DIR#\$NVM_DIR#g")"
fi fi
echo "$SANITIZED_PATH" | sed "s#$HOME#\$HOME#g" echo "$SANITIZED_PATH" | command sed "s#$HOME#\$HOME#g"
} }
nvm() { nvm() {