Browse Source

fix color when upgrade in cronjob

neil 9 years ago
parent
commit
1ab630435d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      acme.sh

+ 5 - 0
acme.sh

@@ -3033,6 +3033,11 @@ cron() {
      fi
      fi
     )
     )
     . $LE_WORKING_DIR/$PROJECT_ENTRY >/dev/null
     . $LE_WORKING_DIR/$PROJECT_ENTRY >/dev/null
+
+    if [ -t 1 ] ; then
+      __INTERACTIVE="1"
+    fi
+    
     _info "Auto upgraded to: $VER"
     _info "Auto upgraded to: $VER"
   fi
   fi
   renewAll
   renewAll