diff --git a/bin/lein b/bin/lein index 6f8661c39..ee4ae44a8 100755 --- a/bin/lein +++ b/bin/lein @@ -27,12 +27,13 @@ do done export LEIN_HOME=${LEIN_HOME:-"$HOME/.lein"} -LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.jar" if [ "$OSTYPE" = "cygwin" ]; then - LEIN_HOME=`cygpath -w $LEIN_HOME` + export LEIN_HOME=`cygpath -w $LEIN_HOME` fi +LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.jar" + # normalize $0 on certain BSDs if [ "$(dirname "$0")" = "." ]; then SCRIPT="$(which $(basename "$0"))"