Skip to content

Commit

Permalink
Merge pull request technomancy#1707 from jbence/feature/fix-script-en…
Browse files Browse the repository at this point in the history
…v-value

Avoid setting SCRIPT to empty string
  • Loading branch information
technomancy committed Sep 24, 2014
2 parents 5b089a0 + 7fb710c commit 1908500
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/lein
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1908500

Please sign in to comment.