From 1ab630435d192dfc0d77409492294acb9d0078bb Mon Sep 17 00:00:00 2001 From: neil Date: Tue, 20 Sep 2016 20:34:33 +0800 Subject: [PATCH] fix color when upgrade in cronjob --- acme.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/acme.sh b/acme.sh index 24bf6087..5f7225be 100755 --- a/acme.sh +++ b/acme.sh @@ -3033,6 +3033,11 @@ cron() { fi ) . $LE_WORKING_DIR/$PROJECT_ENTRY >/dev/null + + if [ -t 1 ] ; then + __INTERACTIVE="1" + fi + _info "Auto upgraded to: $VER" fi renewAll