Merge pull request #1707 from jbence/feature/fix-script-env-value
Avoid setting SCRIPT to empty string
This commit is contained in:
commit
19085004ef
1 changed files with 3 additions and 0 deletions
3
bin/lein
3
bin/lein
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue