Remove unnecessary, incorrect workaround.

The "\printf" calls zsh shell builtin instead of `command printf` in scripting.

The workaround is no longer needed given 91a29c0.
mail6543210 2017-11-21 23:44:38 +08:00
parent 91a29c0da2
commit 16d3e6d2dc
1 changed files with 1 additions and 7 deletions

8
nvm.sh
View File

@ -13,13 +13,7 @@
NVM_SCRIPT_SOURCE="$_"
nvm_echo() {
command printf %s\\n "$*" 2>/dev/null || {
nvm_echo() {
# shellcheck disable=SC1001
\printf %s\\n "$*" # on zsh, `command printf` sometimes fails
}
nvm_echo "$@"
}
command printf %s\\n "$*" 2>/dev/null
}
nvm_cd() {