From 9556b3dd9d0c28f12b32ac8d56b3e669b98c6d8c Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Nov 26 2010 20:52:02 +0000 Subject: Make short arguments (ARGSS) and long arguments (ARGSL) variable definitions local to path_doCopy and verify_doEnvironment functions. --- diff --git a/Scripts/Bash/Functions/Path/path_doCopy.sh b/Scripts/Bash/Functions/Path/path_doCopy.sh index c2959db..3c0cd23 100755 --- a/Scripts/Bash/Functions/Path/path_doCopy.sh +++ b/Scripts/Bash/Functions/Path/path_doCopy.sh @@ -26,18 +26,11 @@ function path_doCopy { - local ARGSL - local ARGSS + # Define short options we want to support. + local ARGSS="t:r:m:F:" - # Define short options supported by copy command we want to - # support inside centos-art.sh script. The value of this variable - # is used as `getopt --options' option. - ARGSS="t:r:m:F:" - - # Define long options supported by copy command we want to support - # inside centos-art.sh script. The value of this variable is used - # as defined by `getopt --longoptions' option. - ARGSL="to:,revision:,message:,file:,force-log,editor-cmd:,encoding:,username:,password:,no-auth-cache,non-interactive,config-dir:" + # Define long options we want to support. + local ARGSL="to:,revision:,message:,file:,force-log,editor-cmd:,encoding:,username:,password:,no-auth-cache,non-interactive,config-dir:" # Parse arguments using getopt(1) command parser. cli_doParseArguments diff --git a/Scripts/Bash/Functions/Verify/verify_doEnvironment.sh b/Scripts/Bash/Functions/Verify/verify_doEnvironment.sh index 4053164..e15ba5e 100755 --- a/Scripts/Bash/Functions/Verify/verify_doEnvironment.sh +++ b/Scripts/Bash/Functions/Verify/verify_doEnvironment.sh @@ -46,10 +46,10 @@ function verify_doEnvironment { INFO[4]="`gettext "Default locale information"`" # Define short options we want to support. - ARGSS="" + local ARGSS="" # Define long options we want to support. - ARGSL="filter:" + local ARGSL="filter:" # Parse arguments using getopt(1) command parser. cli_doParseArguments