diff --git a/Scripts/Bash/Functions/cli_checkFiles.sh b/Scripts/Bash/Functions/cli_checkFiles.sh index 6fa40d2..6556385 100644 --- a/Scripts/Bash/Functions/cli_checkFiles.sh +++ b/Scripts/Bash/Functions/cli_checkFiles.sh @@ -44,14 +44,14 @@ function cli_checkFiles { # Check number of paramaters passed to cli_checkFiles function. At # least one argument should be passed. if [[ $# -lt 1 ]];then - cli_printMessage "cli_checkFiles: `gettext "You need to provide one argument at least."`" + cli_printMessage "cli_checkFiles: `gettext "You need to provide one argument at least."`" 'AsErrorLine' cli_printMessage "$(caller)" "AsToKnowMoreLine" fi # Check value passed as file to cli_checkFiles function. The file # value cannot be empty. if [[ $FILE == '' ]];then - cli_printMessage "cli_checkFiles: `gettext "The first argument cannot be empty."`" + cli_printMessage "cli_checkFiles: `gettext "The first argument cannot be empty."`" 'AsErrorLine' cli_printMessage "$(caller)" "AsToKnowMoreLine" fi @@ -92,7 +92,7 @@ function cli_checkFiles { # To exist, file should be a regular file or a symbolic link. if [[ ! -f $FILE ]];then if [[ ! -h $FILE ]];then - MESSAGE="`eval_gettext "The file \\\"\\\$FILE\\\" doesn't exist."`" + MESSAGE="`eval_gettext "The path \\\"\\\$FILE\\\" doesn't exist."`" fi fi ;; @@ -100,7 +100,7 @@ function cli_checkFiles { * ) # File exists. if [[ ! -a $FILE ]];then - MESSAGE="`eval_gettext "The file \\\"\\\$FILE\\\" doesn't exist."`" + MESSAGE="`eval_gettext "The path \\\"\\\$FILE\\\" doesn't exist."`" fi esac @@ -109,7 +109,7 @@ function cli_checkFiles { # and end up script execution. Otherwise, continue with script # normal flow. if [[ "$MESSAGE" != '' ]];then - cli_printMessage "$MESSAGE" "AsRegularLine" + cli_printMessage "$MESSAGE" "AsErrorLine" cli_printMessage "$(caller)" "AsToKnowMoreLine" fi