mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
fix(nvm): trim non-printable chars from .nvmrc (#10997)
This commit is contained in:
parent
64bc22aee4
commit
fc44c49cca
@ -68,7 +68,7 @@ if zstyle -t ':omz:plugins:nvm' autoload; then
|
|||||||
zstyle -t ':omz:plugins:nvm' silent-autoload && _nvm_silent="--silent"
|
zstyle -t ':omz:plugins:nvm' silent-autoload && _nvm_silent="--silent"
|
||||||
|
|
||||||
if [[ -n "$nvmrc_path" ]]; then
|
if [[ -n "$nvmrc_path" ]]; then
|
||||||
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
|
local nvmrc_node_version=$(nvm version $(cat "$nvmrc_path" | tr -dc '[:print:]'))
|
||||||
|
|
||||||
if [[ "$nvmrc_node_version" = "N/A" ]]; then
|
if [[ "$nvmrc_node_version" = "N/A" ]]; then
|
||||||
nvm install
|
nvm install
|
||||||
|
Loading…
Reference in New Issue
Block a user