diff --git a/Scripts/Functions/cli_getFunctions.sh b/Scripts/Functions/cli_getFunctions.sh index 63dd4c2..bdf6fdf 100644 --- a/Scripts/Functions/cli_getFunctions.sh +++ b/Scripts/Functions/cli_getFunctions.sh @@ -33,7 +33,7 @@ function cli_getFunctions { local PATTERN="^function[[:space:]]+${FUNCNAM}[[:alnum:]_]*[[:space:]]+{$" # Define list of files. - local FUNCFILES=$(cli_getFilesList "${LOCATION}" "${FUNCNAM}.*\.sh") + local FUNCFILES=$(cli_getFilesList ${LOCATION} --pattern="${FUNCNAM}.*\.sh" --maxdepth="1") # Process list of files. for FILE in $FUNCFILES;do