From f8803c071e97e5e664f16c1eb837b5ccf98cb46a Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 17 2011 04:20:55 +0000 Subject: Update initEnvironment.sh and cli_printMessage: - The command-line name (CLINAME) variable is also used by cli_doParseArguments. I forgot that and getopt complained. So, start using CLINAME once again both in initEnvironment and cli_printMessage. --- diff --git a/Scripts/Bash/Functions/cli_printMessage.sh b/Scripts/Bash/Functions/cli_printMessage.sh index c7e8184..9008cb7 100755 --- a/Scripts/Bash/Functions/cli_printMessage.sh +++ b/Scripts/Bash/Functions/cli_printMessage.sh @@ -203,7 +203,7 @@ function cli_printMessage { # Add script name to message. We want to know where # messages come from. The `--quiet' flag doesn't suppress # error messages. - echo "centos-art: ${MESSAGE}" + echo "${CLINAME}: ${MESSAGE}" ;; 'AsToKnowMoreLine' ) diff --git a/Scripts/Bash/initEnvironment.sh b/Scripts/Bash/initEnvironment.sh index 6d49651..e09cba2 100755 --- a/Scripts/Bash/initEnvironment.sh +++ b/Scripts/Bash/initEnvironment.sh @@ -29,6 +29,9 @@ export TEXTDOMAIN=centos-art.sh export TEXTDOMAINDIR=/home/centos/artwork/trunk/Scripts/Bash/Locale +# Initialize centos-art.sh personal information. +export CLINAME='centos-art' + # Initialize centos-art.sh function scripts. FILES=$(ls /home/centos/artwork/trunk/Scripts/Bash/Functions/{cli,cli_*}.sh) for FILE in $FILES;do