Remove unnecessary, incorrect workaround.
The "\printf" calls zsh shell builtin instead of `command printf` in scripting.
The workaround is no longer needed given 91a29c0
.
parent
91a29c0da2
commit
16d3e6d2dc
8
nvm.sh
8
nvm.sh
|
@ -13,13 +13,7 @@
|
||||||
NVM_SCRIPT_SOURCE="$_"
|
NVM_SCRIPT_SOURCE="$_"
|
||||||
|
|
||||||
nvm_echo() {
|
nvm_echo() {
|
||||||
command printf %s\\n "$*" 2>/dev/null || {
|
command printf %s\\n "$*" 2>/dev/null
|
||||||
nvm_echo() {
|
|
||||||
# shellcheck disable=SC1001
|
|
||||||
\printf %s\\n "$*" # on zsh, `command printf` sometimes fails
|
|
||||||
}
|
|
||||||
nvm_echo "$@"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nvm_cd() {
|
nvm_cd() {
|
||||||
|
|
Loading…
Reference in New Issue