From f644927a4209cf2caf27c6a8152c9bf6c610676c Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 25 Mar 2020 10:11:25 +0100 Subject: [PATCH] Improved warning message with 'how to resolve' --- include/profiles | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/include/profiles b/include/profiles index 767f3b79..5b940150 100644 --- a/include/profiles +++ b/include/profiles @@ -39,10 +39,19 @@ if ! IsEmpty "${DATA}"; then FOUND=1; fi if [ ${FOUND} -eq 1 ]; then + Display --text " " + Display --text "==================================================================================================" DisplayWarning "Your profile contains old-style configuration entries. See log file for more details and how to convert these entries" - LogText "Your profile has one or more configuration items that are in an old format (lines starting with key:value). They need to be converted into the new format (key=value)." - LogText "Tip: Use grep to see the relevant matches (grep -E \"^[a-z-]{1,}:\" custom.prf)" - sleep 30 + Display --indent 2 --text "* ${RED}ISSUE${NORMAL}" + Display --indent 2 --text "Your profile has one or more lines that are in an old format (key:value). They need to be converted into the new format (key=value) or disabled." + Display --text " " + Display --indent 2 --text "* ${GREEN}HOW TO RESOLVE${NORMAL}" + Display --indent 2 --text "Use grep to see the relevant matches (grep -E \"^[a-z-]{1,}:\" custom.prf)" + Display --text " " + Display --text "==================================================================================================" + Display --text " " + ReportWarning "GEN-0020" "Your profile contains one or more old-style configuration entries" + sleep 10 fi # Security check for unexpected and possibly harmful escape characters (hyphen should be listed as first or last character)