Skip to content
Snippets Groups Projects
Commit 293e60bf authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

-Using Sed to get rid of color coding chars

parent 95d53749
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,6 @@ SVN_DIR=${HOME}/SVN_$(date -d "today" +"%Y%m%d")
unb_info $0 "Copying local SVN dir to ${SVN_DIR}"
unb_exec $0 cp -r ${SVN}/ ${SVN_DIR}
export SVN=${SVN_DIR}
SVN=${SVN_DIR}
###############################################################################
# Disable exit on unb_error (used in unb_exec)
......@@ -121,6 +120,7 @@ MESSAGE="\
${NOF_RBF_REQ} RBF files required\n\
${NOF_RBF} RBF files generated:\n\
${FOUND_RBF}\n"
LOG=$(cat ${LOGFILE})
# Cat the logfile and use Sed to get rid of color coding characters
LOG=$(cat ${LOGFILE} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g")
SUBJECT="[REGTEST] Synthesis Result: ${RESULT}"
printf "${MESSAGE} \n ${LOG}" | mail -s "${SUBJECT}" ${RECIPIENTS}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment