Browse Source

Fix condition (#225)

This now checks that the file is readable, like the zsh version.
remotes/origin/add-simple-redirecting-site
Jo Liss 5 years ago committed by GitHub
parent
commit
bf5e3a70f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      executable/Env.re

4
executable/Env.re

@ -80,10 +80,10 @@ let printUseOnCd = (~shell) =>
__fnmcd () { __fnmcd () {
cd "$@" cd "$@"
if [[ -f .node-version && .node-version ]]; then if [[ -f .node-version && -r .node-version ]]; then
echo "fnm: Found .node-version" echo "fnm: Found .node-version"
fnm use fnm use
elif [[ -f .nvmrc && .nvmrc ]]; then elif [[ -f .nvmrc && -r .nvmrc ]]; then
echo "fnm: Found .nvmrc" echo "fnm: Found .nvmrc"
fnm use fnm use
fi fi

Loading…
Cancel
Save