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