Merge pull request #1707 from jbence/feature/fix-script-env-value

Avoid setting SCRIPT to empty string
This commit is contained in:
Phil Hagelberg 2014-09-24 11:12:55 -07:00
commit 19085004ef

View file

@ -113,6 +113,9 @@ LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.jar"
# normalize $0 on certain BSDs
if [ "$(dirname "$0")" = "." ]; then
SCRIPT="$(which $(basename "$0"))"
if [ -z "$SCRIPT" ]; then
SCRIPT="$0"
fi
else
SCRIPT="$0"
fi