diff --git a/libexec/jenv-init b/libexec/jenv-init index f77ab78..4a34e0c 100755 --- a/libexec/jenv-init +++ b/libexec/jenv-init @@ -22,13 +22,13 @@ done shell="$1" if [ -z "$shell" ]; then - if [-n "$BASH_VERSIONH"]; then + if [ -n "$BASH_VERSION" ]; then shell="bash" - elif [ -n "$ZSH_VERSION"]; then + elif [ -n "$ZSH_VERSION" ]; then shell="zsh" - elif [ -n "FISH_VERSION"]; then + elif [ -n "$FISH_VERSION" ]; then shell="fish" - elif [ -n "KSH_VERSION"]; then + elif [ -n "$KSH_VERSION" ]; then shell="ksh" else shell="unknown"