Avoid setting SCRIPT to empty string

This commit is contained in:
James Bence 2014-09-24 09:50:47 -07:00
parent 5b089a024b
commit 7fb710c8a6

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