From 9e786d102202b249ed66ff222cf7f8de494976d9 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 25 2011 02:20:17 +0000 Subject: Update cli_printActionPreamble.sh. --- diff --git a/Scripts/Bash/centos-art/Functions/cli_printActionPreamble.sh b/Scripts/Bash/centos-art/Functions/cli_printActionPreamble.sh index aade07a..f3bcc8f 100755 --- a/Scripts/Bash/centos-art/Functions/cli_printActionPreamble.sh +++ b/Scripts/Bash/centos-art/Functions/cli_printActionPreamble.sh @@ -38,12 +38,15 @@ function cli_printActionPreamble { local ACTION="$2" local FORMAT="$3" - # Check list of files to process. If we have an empty list of - # files, inform about it and stop script execution. Otherwise - # print list of files. + # Check list of files to process. If we have an empty list of + # files, inform about that and stop the script execution. + # Otherwise, check all files in the list to be sure they are + # regular files. if [[ "$FILES" == '' ]];then cli_printMessage "`gettext "There is no file to process."`" 'AsErrorLine' cli_printMessage "$(caller)" 'AsToKnowMoreLine' + else + cli_checkFiles "${FILES}" 'f' fi # Verify that all function parameters are passed. If they are not,