From c0c199b0916021d1e13e2328daf8706633d917c5 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 30 2012 16:09:55 +0000 Subject: Update `Functions/Render/Conf/conf.sh' file. --- diff --git a/Scripts/Bash/Functions/Render/Conf/conf.sh b/Scripts/Bash/Functions/Render/Conf/conf.sh index f6ae99a..599585f 100755 --- a/Scripts/Bash/Functions/Render/Conf/conf.sh +++ b/Scripts/Bash/Functions/Render/Conf/conf.sh @@ -80,9 +80,23 @@ function conf { COMMAND=$(cli_getConfigValue "$TEMPLATE" "$FILENAME" "command") for FGCOLOR in $FGCOLORS;do + + # Verify value passed as foreground color. + cli_checkFiles ${FGCOLOR} --match="^[a-fA-F0-9]{3,6}$" + for BGCOLOR in $BGCOLORS;do + + # Verify value passed as background color. + cli_checkFiles ${BGCOLOR} --match="^[a-fA-F0-9]{6}-(0|1)$" + for HEIGHT in $HEIGHTS;do + + # Verify value passed as height. + cli_checkFiles ${HEIGHT} --match="^[[:digit:]]+$" + + # Do base rendition actions. conf_doBaseActions + done done done