Permalink
Browse files

Don't assign JAVA_HOME when binary returns non-zero status

  • Loading branch information...
1 parent 3a91b60 commit cb44962167418c5b655aab8c1cebacfdb69953f8 @amarshall committed Jul 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sh_common/constants
View
@@ -1,7 +1,7 @@
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export EDITOR=vim
-if [ -z $JAVA_HOME ] && which /usr/libexec/java_home &> /dev/null; then
+if [ -z $JAVA_HOME ] && /usr/libexec/java_home &> /dev/null; then
export JAVA_HOME=$(/usr/libexec/java_home)
fi
which lesspipe.sh &> /dev/null && export LESSOPEN="| lesspipe.sh %s"

0 comments on commit cb44962

Please sign in to comment.