technomancy/leiningen — pull request #1707 by jbence (2014-09-24 16:58:26+00:00)
Title: Avoid setting SCRIPT to empty string

On Ubuntu 12, if ```$0``` is ```./lein```, then ```SCRIPT="$(which $(basename "$0"))"``` ends up blank. That causes an error message later: "You do not have permission to upgrade the installation in". But it is not really a permission issue, just a blank value for SCRIPT.