Fixed zsh error.
It seems that when using zsh as shell and having no https proxy, the following error happened [zitpcx16106] ~ $ lein repl /afs/desy.de/user/p/pfix/local/bin/lein: line 86: [: !=: unary operator expected REPL started; server listening on localhost:48076. user=> This change should fix that.
This commit is contained in:
parent
d055f28b64
commit
2fc1bd114a
1 changed files with 1 additions and 1 deletions
2
bin/lein
Executable file → Normal file
2
bin/lein
Executable file → Normal file
|
@ -83,7 +83,7 @@ fi
|
||||||
|
|
||||||
HTTP_CLIENT="wget --no-check-certificate -O"
|
HTTP_CLIENT="wget --no-check-certificate -O"
|
||||||
if type -p curl >/dev/null 2>&1; then
|
if type -p curl >/dev/null 2>&1; then
|
||||||
if [ $https_proxy != "" ]; then
|
if [ "$https_proxy" != "" ]; then
|
||||||
CURL_PROXY="-x $https_proxy"
|
CURL_PROXY="-x $https_proxy"
|
||||||
fi
|
fi
|
||||||
HTTP_CLIENT="curl $CURL_PROXY --insecure -f -L -o"
|
HTTP_CLIENT="curl $CURL_PROXY --insecure -f -L -o"
|
||||||
|
|
Loading…
Reference in a new issue