From 7103a24479c8a0f9ff32417a5522b1f2adfb4165 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 19 2012 17:18:37 +0000 Subject: Update `Functions/Render/Svg/svg_checkColorFormats.sh' file. --- diff --git a/Scripts/Bash/Functions/Render/Svg/svg_checkColorFormats.sh b/Scripts/Bash/Functions/Render/Svg/svg_checkColorFormats.sh index 0c27430..230c3a5 100755 --- a/Scripts/Bash/Functions/Render/Svg/svg_checkColorFormats.sh +++ b/Scripts/Bash/Functions/Render/Svg/svg_checkColorFormats.sh @@ -31,17 +31,18 @@ function svg_checkColorFormats { # Define long options. local ARGSL='format:' - # Initialize ARGUMENTS with an empty value and set it as local - # variable to this function scope. - local ARGUMENTS='' - # Initialize pattern used for color sanitation. local PATTERN='^#[0-9a-f]{6}$' - # Redefine ARGUMENTS variable using current positional parameters. + # Initialize arguments with an empty value and set it as local + # variable to this function scope. Doing this is very important to + # avoid any clash with higher execution environments. + local ARGUMENTS='' + + # Prepare ARGUMENTS variable for getopt. cli_parseArgumentsReDef "$@" - # Redefine ARGUMENTS variable using getopt output. + # Redefine ARGUMENTS using getopt(1) command parser. cli_parseArguments # Redefine positional parameters using ARGUMENTS variable.