If debug mode, don't pass --silent to curl

This also fixes the issue of curl getting the -L option passed to it twice.
This commit is contained in:
David Mcanulty 2016-04-18 15:07:05 -07:00
parent db0534ed97
commit 20a937e443

View File

@ -754,7 +754,7 @@ _initpath() {
dp="$LE_WORKING_DIR/curl.dump"
CURL="curl -L --silent"
if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ] ; then
CURL="$CURL -L --trace-ascii $dp "
CURL="curl -L --trace-ascii $dp "
fi
_DEFAULT_ACCOUNT_KEY_PATH="$LE_WORKING_DIR/account.key"