diff --git a/Scripts/Functions/Help/Texinfo/texinfo.sh b/Scripts/Functions/Help/Texinfo/texinfo.sh index 1e386e3..be23c32 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo.sh @@ -42,6 +42,13 @@ function texinfo { # related files (.info, .pdf, .xml, etc.). MANUAL_BASEFILE="${MANUAL_BASEDIR}/${MANUAL_NAME}" + # Define default behaviour when no action has been provided to + # `centos-art.sh' script command-line interface. + if [[ $ACTIONNAM == '' ]];then + /usr/bin/info --node="Top" --file=${MANUAL_BASEFILE}.info.bz2 + exit + fi + # Define chapter name of directory where repository documentation # entries will be stored in. MANUAL_CHAPTER_NAME=$(cli_getRepoName "Directories" -d) @@ -86,13 +93,13 @@ function texinfo { # don't need action value at all (e.g., searching, reading and # updating output files). This way, the execution of backend # functionalities is splitted here. - if [[ $ACTIONNAM =~ "(copy|rename|delete)Entry" ]];then + if [[ $ACTIONNAM =~ "^(copy|rename|delete)Entry$" ]];then # Execute backend action names that may need to use more than # one action value. ${MANUAL_BACKEND}_${ACTIONNAM} $@ - elif [[ $ACTIONNAM =~ "(search(Index|Node)|updateOutputFiles)" ]];then + elif [[ $ACTIONNAM =~ "^(search(Index|Node)|updateOutputFiles)$" ]];then # Execute backend action names that might not need any action # value as reference to do their work. diff --git a/Scripts/Functions/Help/help_getOptions.sh b/Scripts/Functions/Help/help_getOptions.sh index 0cf1aac..20d21a1 100755 --- a/Scripts/Functions/Help/help_getOptions.sh +++ b/Scripts/Functions/Help/help_getOptions.sh @@ -38,14 +38,6 @@ function help_getOptions { # parser. eval set -- "$ARGUMENTS" - # Define default action for help functionality. This is, the - # action performed when no non-option argument is passed to - # `centos-art.sh' script command-line internface. - if [[ $# -le 1 ]];then - /usr/bin/info --node="Top" --file=${MANUAL_BASEFILE}.info.bz2 - exit - fi - # Define action to take for each option passed. while true; do case "$1" in