Skip to content

Commit

Permalink
Don't reset user.home back to $HOME in opt/lein. Fixes heroku#3.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Mar 26, 2012
1 parent c2a3cf8 commit 69a56ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion bin/compile
Expand Up @@ -39,7 +39,6 @@ LEIN_BIN_PATH=$BUILD_DIR"/.lein/bin/lein"
echo " Writing: lein script"
mkdir -p $(dirname $LEIN_BIN_PATH)
cp $LEIN_BIN_SOURCE $LEIN_BIN_PATH
chmod +x $LEIN_BIN_PATH
sed -i s/##LEIN_VERSION##/$LEIN_VERSION/ $LEIN_BIN_PATH

# unpack existing cache
Expand Down
3 changes: 1 addition & 2 deletions opt/lein 100644 → 100755
Expand Up @@ -14,8 +14,7 @@ export LEIN_JAVA_CMD=${LEIN_JAVA_CMD:-$JAVA_CMD}

# Prefer JVM_OPTS, but fall back to JAVA_OPTS for compatibility
export JVM_OPTS="${JVM_OPTS:-"$JAVA_OPTS"}"
export LEIN_JVM_OPTS=${LEIN_JVM_OPTS:-$JVM_OPTS}
LEIN_JVM_OPTS="$LEIN_JVM_OPTS -Duser.home=$HOME -Dleiningen.original.pwd=$PWD"
export LEIN_JVM_OPTS="${LEIN_JVM_OPTS:-$JVM_OPTS} -Dleiningen.original.pwd=$PWD"

if [ "$1" == "repl" ]; then
CLASSPATH=$(lein classpath)
Expand Down

0 comments on commit 69a56ce

Please sign in to comment.