From 661f05837c803ff4bd078e1f051816b102b56a99 Mon Sep 17 00:00:00 2001 From: neilpang Date: Wed, 12 Oct 2016 21:48:18 +0800 Subject: [PATCH] minor --- acme.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/acme.sh b/acme.sh index 9ff54d32..b56d7698 100755 --- a/acme.sh +++ b/acme.sh @@ -3965,13 +3965,15 @@ _process() { if [ "${_CMD}" != "install" ] ; then __initHome - if [ "$_log" ] && [ -z "$_logfile" ] ; then - _logfile="$DEFAULT_LOG_FILE" + if [ "$_log" ]; then + if [ -z "$_logfile" ] ; then + _logfile="$DEFAULT_LOG_FILE" + fi fi if [ "$_logfile" ] ; then _saveaccountconf "LOG_FILE" "$_logfile" + LOG_FILE="$_logfile" fi - LOG_FILE="$_logfile" if [ "$_log_level" ] ; then _saveaccountconf "LOG_LEVEL" "$_log_level"