From e632c589d987f990a146dc209e3bac659891e076 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jun 03 2011 03:46:23 +0000 Subject: Update cli_checkFiles.sh. --- diff --git a/Scripts/Functions/cli_checkFiles.sh b/Scripts/Functions/cli_checkFiles.sh index 0051117..3e12df4 100644 --- a/Scripts/Functions/cli_checkFiles.sh +++ b/Scripts/Functions/cli_checkFiles.sh @@ -116,12 +116,8 @@ function cli_checkFiles { -n|--versioned ) for FILE in $(echo $FILES);do - if [[ $(cli_getRepoStatus "$FILE") =~ '^(A|M)$' ]];then - cli_printMessage "`eval_gettext "The path \\\"\\\$FILE\\\" must be committed first."`" --as-error-line - elif [[ $(cli_getRepoStatus "$FILE") =~ '^D$' ]];then - cli_printMessage "`eval_gettext "The path \\\"\\\$FILE\\\" has been marked for deletion."`" --as-error-line - elif [[ ! $(cli_getRepoStatus "$FILE") =~ '' ]];then - cli_printMessage "`eval_gettext "The path \\\"\\\$FILE\\\" is not versioned."`" --as-error-line + if [[ ! $(cli_getRepoStatus "$FILE") =~ '^[[:space:]]$' ]];then + cli_printMessage "`eval_gettext "The path \\\"\\\$FILE\\\" is not at a clean state."`" --as-error-line fi done shift 1