Skip to content

Commit

Permalink
Downgrade Leiningen #bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Lowell committed Jul 8, 2016
1 parent 26c313c commit de9e705
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions bin/lein
Expand Up @@ -4,7 +4,7 @@
# somewhere on your $PATH, like ~/bin. The rest of Leiningen will be
# installed upon first run into the ~/.lein/self-installs directory.

export LEIN_VERSION="2.6.1"
export LEIN_VERSION="2.5.3"

case $LEIN_VERSION in
*SNAPSHOT) SNAPSHOT="YES" ;;
Expand Down Expand Up @@ -222,14 +222,9 @@ else # Not running from a checkout
fi
fi

if [ ! -x "$JAVA_CMD" ] && ! type -f java >/dev/null
then
>&2 echo "Leiningen coundn't find 'java' executable, which is required."
>&2 echo "Please either set JAVA_CMD or put java (>=1.6) in your \$PATH ($PATH)."
exit 1
fi

export LEIN_JAVA_CMD="${LEIN_JAVA_CMD:-${JAVA_CMD:-java}}"
# TODO: explain what to do when Java is missing
export JAVA_CMD="${JAVA_CMD:-"java"}"
export LEIN_JAVA_CMD="${LEIN_JAVA_CMD:-$JAVA_CMD}"

if [[ -z "${DRIP_INIT+x}" && "$(basename "$LEIN_JAVA_CMD")" == *drip* ]]; then
export DRIP_INIT="$(printf -- '-e\n(require (quote leiningen.repl))')"
Expand Down

0 comments on commit de9e705

Please sign in to comment.