Skip to content

Commit

Permalink
Use $PWD when determining "bundled lein".
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Nov 11, 2011
1 parent 1ba201f commit 005b161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/lein
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ do
done

if [ "$LEIN_HOME" = "" ]; then
if [ -d "$ORIGINAL_PWD/.lein" ] && [ "$ORIGINAL_PWD" != "$HOME" ]; then
if [ -d "$PWD/.lein" ] && [ "$PWD" != "$HOME" ]; then
echo "Leiningen is running in bundled mode."
LEIN_HOME="$ORIGINAL_PWD/.lein"
LEIN_HOME="$PWD/.lein"
else
LEIN_HOME="$HOME/.lein"
fi
Expand Down
4 changes: 2 additions & 2 deletions bin/lein-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ JVM_OPTS=${JVM_OPTS:-"$JAVA_OPTS"}
JAVA_CMD=${JAVA_CMD:-"java"}

if [ "$LEIN_HOME" = "" ]; then
if [ -d "$ORIGINAL_PWD/.lein" ] && [ "$ORIGINAL_PWD" != "$HOME" ]; then
if [ -d "$PWD/.lein" ] && [ "$PWD" != "$HOME" ]; then
echo "Leiningen is running in bundled mode."
LEIN_HOME="$ORIGINAL_PWD/.lein"
LEIN_HOME="$PWD/.lein"
else
LEIN_HOME="$HOME/.lein"
fi
Expand Down

0 comments on commit 005b161

Please sign in to comment.