diff options
author | mboelen <michael@cisofy.com> | 2015-09-24 22:42:21 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-09-24 22:42:21 +0300 |
commit | adb5948b302d5461c21953d0c792cddee5140e8b (patch) | |
tree | 4c062ec80b2cf4e74cfe0c81ffce30d140dead3e /include | |
parent | cc4feee4e55e380a9c5660ff20c4a69edad872c6 (diff) |
Properly parse updated way of storing warnings and suggestions
Diffstat (limited to 'include')
-rw-r--r-- | include/report | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/report b/include/report index fb57bd00..0c914606 100644 --- a/include/report +++ b/include/report @@ -110,8 +110,8 @@ echo " ${WARNING}Warnings${NORMAL} (${TOTAL_WARNINGS}):" echo " ${WHITE}----------------------------${NORMAL}" for WARNING in ${SWARNINGS}; do - SHOWWARNING=`echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Warning: //'` - ADDLINK=`echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Warning: \(.*\)\[//' | sed 's/\]//'` + SHOWWARNING=`echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Warning: //' | sed 's/\[details:\(.*\)\] \[solution:\(.*\)\]//' | sed 's/test://'` + ADDLINK=`echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Warning: \(.*\)\[test://' | sed 's/\]\(.*\)]//'` IS_CUSTOM=`echo ${ADDLINK} | grep "^CUST"` echo " ${WHITE}- ${SHOWWARNING}${NORMAL}" if [ "${IS_CUSTOM}" = "" ]; then @@ -132,8 +132,8 @@ echo " ${YELLOW}Suggestions${NORMAL} (${TOTAL_SUGGESTIONS}):" echo " ${WHITE}----------------------------${NORMAL}" for SUGGESTION in ${SSUGGESTIONS}; do - SHOWSUGGESTION=`echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Suggestion: //'` - ADDLINK=`echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Suggestion: \(.*\)\[//' | sed 's/\]//'` + SHOWSUGGESTION=`echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Suggestion: //' | sed 's/\[details:\(.*\)\] \[solution:\(.*\)\]//' | sed 's/test://'` + ADDLINK=`echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^\[\(.*\)\] Suggestion: \(.*\)\[test://' | sed 's/\]\(.*\)]//'` IS_CUSTOM=`echo ${ADDLINK} | grep "^CUST"` echo " - ${SHOWSUGGESTION}" if [ "${IS_CUSTOM}" = "" ]; then |