change "| tee ${LOG}" for "> ${LOG}"