Skip to content

Commit

Permalink
fix LEIN_HOME path when running under cygwin (required for user profi…
Browse files Browse the repository at this point in the history
…les)
  • Loading branch information
juergenhoetzel committed Apr 14, 2012
1 parent d539c0e commit e03989d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/lein
Expand Up @@ -35,6 +35,10 @@ 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`
fi

# apply context specific CLASSPATH entries
if [ -f .lein-classpath ] && [ ! -f src/leiningen/version.clj ]; then
CLASSPATH="`cat .lein-classpath`:$CLASSPATH"
Expand Down

0 comments on commit e03989d

Please sign in to comment.