From 41fbc95b6f426af7b65bb62745ddd105a11931b2 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 26 2011 17:50:22 +0000 Subject: Update cli.sh. --- diff --git a/Scripts/Functions/cli.sh b/Scripts/Functions/cli.sh index 9c8e44e..b8d388c 100644 --- a/Scripts/Functions/cli.sh +++ b/Scripts/Functions/cli.sh @@ -32,7 +32,6 @@ function cli { local FUNCDIR='' local FUNCDIRNAM='' local FUNCSCRIPT='' - local FUNCCONFIG='' local ARGUMENTS='' # Initialize default value to filter flag. The filter flag @@ -88,11 +87,6 @@ function cli { # Check function script execution rights. cli_checkFiles "${FUNCSCRIPT}" --execution - # Define function configuration directory. The function - # configuration directory is used to store functionality's - # related files. - FUNCCONFIG=${FUNCDIR}/${FUNCDIRNAM}/Config - # Remove the first argument passed to centos-art.sh command-line # in order to build optional arguments inside functionalities. We # start counting from second argument (inclusive) on. @@ -113,4 +107,7 @@ function cli { # function calling after all variables and arguments definitions. cli_getFunctions "${FUNCDIR}/${FUNCDIRNAM}" + # Execute function. + eval $FUNCNAM + }