fix: don't display summary if no CVE was tested (e.g. --hw-only)

This commit is contained in:
Stéphane Lesimple 2018-09-19 09:04:52 +02:00
parent bff38f1b26
commit 3cf9141601

View File

@ -3795,8 +3795,10 @@ do
fi
done
_info "> \033[46m\033[30mSUMMARY:\033[0m$final_summary"
_info ""
if [ -n "$final_summary" ]; then
_info "> \033[46m\033[30mSUMMARY:\033[0m$final_summary"
_info ""
fi
_vars=$(set | grep -Ev '^[A-Z_[:space:]]' | sort | tr "\n" '|')
_debug "variables at end of script: $_vars"