Improve error message when setting already exists

This commit is contained in:
Michael Boelen 2016-05-24 20:53:16 +02:00
parent a45d6e61f8
commit c42a1d4083
1 changed files with 5 additions and 1 deletions

View File

@ -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)