[revert] Remove regex from setup log grep

This commit is contained in:
William Wernert
2020-07-01 17:39:04 -04:00
parent 408b5ee32d
commit aeda3fde74

View File

@@ -51,7 +51,7 @@ echo "---- Starting setup at $(date -u) ----" >> $setup_log 2>&1
automated=no automated=no
function progress() { function progress() {
if grep -qE "(ERROR|Error)" $setup_log || [[ -s /var/spool/mail/root ]]; then if grep -q "ERROR" $setup_log || [[ -s /var/spool/mail/root ]]; then
if [[ -s /var/spool/mail/root ]]; then if [[ -s /var/spool/mail/root ]]; then
echo '[ ERROR ] /var/spool/mail/root grew unexpectedly' >> $setup_log 2>&1 echo '[ ERROR ] /var/spool/mail/root grew unexpectedly' >> $setup_log 2>&1
fi fi