Unverified Commit fc44c49c authored by Zeragamba's avatar Zeragamba Committed by GitHub

fix(nvm): trim non-printable chars from .nvmrc (#10997)

parent 64bc22ae
......@@ -68,7 +68,7 @@ if zstyle -t ':omz:plugins:nvm' autoload; then
zstyle -t ':omz:plugins:nvm' silent-autoload && _nvm_silent="--silent"
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
nvm install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment