| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function cli_getFunctions { |
| |
| |
| local FUNCNAMCALL='' |
| local FUNCFILES='' |
| |
| |
| FUNCFILES=$(ls ${FUNCDIR}/${FUNCDIRNAM}/${FUNCNAM}*.sh) |
| |
| for FILE in $FUNCFILES;do |
| |
| if [[ -x ${FILE} ]];then |
| |
| |
| . $FILE |
| |
| |
| |
| FUNCNAMCALL=$(grep '^function ' $FILE | cut -d' ' -f2) |
| export -f $FUNCNAMCALL |
| |
| else |
| |
| cli_printMessage "`eval_gettext "The \\\$FILE hasn't execution rights."`" 'AsErrorLine' |
| cli_printMessage "${FUNCDIRNAM}" "AsToKnowMoreLine" |
| |
| fi |
| |
| done |
| |
| # Execute action passed to centos-art.sh script. |
| if [[ $FUNCNAM != '' ]];then |
| eval $FUNCNAM |
| fi |
| |
| } |
| |