mirror of https://github.com/CISOfy/lynis.git
Improve error message when setting already exists
This commit is contained in:
parent
a45d6e61f8
commit
c42a1d4083
|
@ -85,7 +85,11 @@
|
|||
${ECHOCMD} "Configuring setting '${CYAN}${SETTING}${NORMAL}'"
|
||||
echo "${SETTING}=${VALUE}" >> ${CUSTOM_PROFILE}
|
||||
else
|
||||
${ECHOCMD} "${RED}Error${NORMAL}: Setting '${CYAN}${SETTING}${NORMAL}' was already configured:${NORMAL} ${WHITE}${FIND}${NORMAL}"
|
||||
${ECHOCMD} ""
|
||||
${ECHOCMD} "${RED}Error${NORMAL}: Setting '${CYAN}${SETTING}${NORMAL}' was already configured${NORMAL}"
|
||||
${ECHOCMD} ""
|
||||
${ECHOCMD} "Profile: ${CUSTOM_PROFILE}"
|
||||
${ECHOCMD} "Current value: ${WHITE}${FIND}${NORMAL}"
|
||||
fi
|
||||
fi
|
||||
# Now check if value is in line with expected type (boolean, integer, string)
|
||||
|
|
Loading…
Reference in New Issue