diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-25 14:29:01 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-25 14:29:01 +0300 |
commit | 6f1be4c82ac302f40a703c24482944d8f6460ff2 (patch) | |
tree | 698aac6138a9f0010cc2c2907b458edee2814f76 /include | |
parent | c42a1d40833fbeaebfc75fc4ea8abfea8eaf4ca2 (diff) |
Better display when multiple items are to be configured
Diffstat (limited to 'include')
-rw-r--r-- | include/helper_configure | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/helper_configure b/include/helper_configure index 90e72a8e..77534d59 100644 --- a/include/helper_configure +++ b/include/helper_configure @@ -76,6 +76,7 @@ SETTING=$(echo ${I} | awk -F= '{print $1}') VALUE=$(echo ${I} | awk -F= '{print $2}') if [ "${VALUE}" = "" ]; then + ${ECHOCMD} "Profile: ${CUSTOM_PROFILE}" Debug "Did not find a value configured on the command line for setting ${SETTING}" #read VALUE else @@ -84,12 +85,11 @@ if [ "${FIND}" = "" ]; then ${ECHOCMD} "Configuring setting '${CYAN}${SETTING}${NORMAL}'" echo "${SETTING}=${VALUE}" >> ${CUSTOM_PROFILE} + if [ $? -eq 0 ]; then ${ECHOCMD} "${GREEN}Setting changed${NORMAL}"; fi else + ${ECHOCMD} "${YELLOW}Notice${NORMAL}: Setting '${CYAN}${SETTING}${NORMAL}' was already configured (not changed)${NORMAL}" + ${ECHOCMD} " Current value: ${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) |