Changes to show more details for warnings

This commit is contained in:
Michael Boelen 2016-09-24 15:27:42 +02:00
parent 1bc29ebb2e
commit 263c0b558b
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@
SOLUTION=""
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/\]\(.*\)]//')
DETAILS=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^.* Warning: \(.*\)\[details://' | sed 's/\]\(.*\)]//')
DETAILS=$(echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^.* Warning: \(.*\)\[details://' | sed 's/\]\(.*\)]//')
SUGGESTION_PIECES=$(echo ${WARNING} | sed 's/\[/ [/g')
for PIECE in ${SUGGESTION_PIECES}; do
if [ -z "${SOLUTION}" ]; then

View File

@ -311,7 +311,7 @@
Report "vulnerable_package[]=${ITEM}"
AddHP 1 2
done
ReportWarning "${TEST_NO}" "Vulnerable packages found" "arch-audit" "solution:Update packages with pacman -Suy"
ReportWarning "${TEST_NO}" "Vulnerable packages found" "arch-audit" "text:Update packages with pacman -Suy"
fi
fi
#