Skip to content

Commit

Permalink
Make sure cygpath affects LEIN_JAR.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed May 10, 2012
1 parent 37460dc commit 3afbbb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/lein
Original file line number Diff line number Diff line change
Expand Up @@ -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"))"
Expand Down

0 comments on commit 3afbbb8

Please sign in to comment.