Make sure cygpath affects LEIN_JAR.
This commit is contained in:
parent
37460dc32c
commit
3afbbb8bcd
1 changed files with 3 additions and 2 deletions
5
bin/lein
5
bin/lein
|
@ -27,12 +27,13 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
export LEIN_HOME=${LEIN_HOME:-"$HOME/.lein"}
|
export LEIN_HOME=${LEIN_HOME:-"$HOME/.lein"}
|
||||||
LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.jar"
|
|
||||||
|
|
||||||
if [ "$OSTYPE" = "cygwin" ]; then
|
if [ "$OSTYPE" = "cygwin" ]; then
|
||||||
LEIN_HOME=`cygpath -w $LEIN_HOME`
|
export LEIN_HOME=`cygpath -w $LEIN_HOME`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.jar"
|
||||||
|
|
||||||
# normalize $0 on certain BSDs
|
# normalize $0 on certain BSDs
|
||||||
if [ "$(dirname "$0")" = "." ]; then
|
if [ "$(dirname "$0")" = "." ]; then
|
||||||
SCRIPT="$(which $(basename "$0"))"
|
SCRIPT="$(which $(basename "$0"))"
|
||||||
|
|
Loading…
Reference in a new issue