| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function cli_getFilesList { |
| |
| local LOCATION='' |
| |
| |
| |
| |
| if [[ "$1" != '' ]];then |
| LOCATION="$1" |
| else |
| LOCATION="$ACTIONVAL" |
| fi |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| REGEX="^${LOCATION}/.*${REGEX}$" |
| |
| |
| if [[ -d $LOCATION ]];then |
| FILES=$(find $LOCATION -regextype posix-egrep -type f -regex "${REGEX}") |
| elif [[ -f $LOCATION ]];then |
| FILES=$LOCATION |
| fi |
| |
| |
| |
| if [[ $FILES == '' ]];then |
| cli_printMessage "`gettext "No file found."`" 'AsErrorLine' |
| cli_printMessage "$(caller)" 'AsToKnowMoreLine' |
| fi |
| |
| } |