From 0f02c4d6fbf468759b3966e7c5fb2597587593fe Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Dec 02 2010 15:41:52 +0000 Subject: Update cli_checkFiles.sh: - Add `fd' file verification. Use this verification where, to exist, file should be a regular file or a directory. --- diff --git a/Scripts/Bash/Functions/cli_checkFiles.sh b/Scripts/Bash/Functions/cli_checkFiles.sh index 6556385..fd46136 100644 --- a/Scripts/Bash/Functions/cli_checkFiles.sh +++ b/Scripts/Bash/Functions/cli_checkFiles.sh @@ -97,6 +97,15 @@ function cli_checkFiles { fi ;; + fd ) + # To exist, file should be a regular file or a directory. + if [[ ! -f $FILE ]];then + if [[ ! -d $FILE ]];then + MESSAGE="`eval_gettext "The path \\\"\\\$FILE\\\" doesn't exist."`" + fi + fi + ;; + * ) # File exists. if [[ ! -a $FILE ]];then