diff --git a/cron-reinstall-esp-idf.sh b/cron-reinstall-esp-idf.sh index f0d0c52..86236f8 100644 --- a/cron-reinstall-esp-idf.sh +++ b/cron-reinstall-esp-idf.sh @@ -75,6 +75,9 @@ elif [ "$arg" == "nologout" ]; then elif [ "$arg" == "retool" ]; then action="RETOOL" + write_to_log " === $(date '+%d/%m/%Y %H:%M:%S %Z (%s)'): new ${action} ===" + write_to_log "Version: ${scriptVers}" + write_to_log "deleting old export.sh" rm $idfDir/export.sh @@ -91,9 +94,6 @@ elif [ "$arg" == "retool" ]; then cp -r $customBinFrom $customBinLocation chmod +x $customBinLocation/* - write_to_log " === $(date '+%d/%m/%Y %H:%M:%S %Z (%s)'): new ${action} ===" - write_to_log "Version: ${scriptVers}" - exit else # write_to_log "$(date '+%d/%m/%Y %H:%M:%S %Z (%s)'): LIVE mode"