diff --git a/executable/Env.re b/executable/Env.re index 923c03c..a9fb881 100644 --- a/executable/Env.re +++ b/executable/Env.re @@ -80,10 +80,10 @@ let printUseOnCd = (~shell) => __fnmcd () { cd "$@" - if [[ -f .node-version && .node-version ]]; then + if [[ -f .node-version && -r .node-version ]]; then echo "fnm: Found .node-version" fnm use - elif [[ -f .nvmrc && .nvmrc ]]; then + elif [[ -f .nvmrc && -r .nvmrc ]]; then echo "fnm: Found .nvmrc" fnm use fi