Permalink
Browse files

fix LEIN_HOME path when running under cygwin (required for user profi…

…les)
  • Loading branch information...
1 parent d539c0e commit e03989d1c20a93fd5768b147b81d0ef77a9af33d @juergenhoetzel juergenhoetzel committed Apr 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 bin/lein
View
@@ -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"

0 comments on commit e03989d

Please sign in to comment.