From 6667dc4bdbb1f1effea320f7af18990c5919a346 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 07 2011 01:37:08 +0000 Subject: Update cli_checkPathComponent.sh. Start using cli_getPathComponent@2566. --- diff --git a/Scripts/Functions/cli_checkPathComponent.sh b/Scripts/Functions/cli_checkPathComponent.sh index c4e7aab..d0f0c70 100755 --- a/Scripts/Functions/cli_checkPathComponent.sh +++ b/Scripts/Functions/cli_checkPathComponent.sh @@ -65,7 +65,7 @@ function cli_checkPathComponent { --release ) for FILE in $(echo $FILES);do - if [[ $FILE =~ "^.+/$(cli_getPathComponent "${FILE}" '--release-pattern')/.*$" ]];then + if [[ ! $FILE =~ "^.+/$(cli_getPathComponent --release-pattern)/.*$" ]];then cli_printMessage "`eval_gettext "The release \\\"\\\$FILE\\\" is not valid."`" --as-error-line fi done @@ -75,7 +75,7 @@ function cli_checkPathComponent { --architecture ) for FILE in $(echo $FILES);do - if [[ $FILE =~ $(cli_getPathComponent "${FILE}" '--release-architecture') ]];then + if [[ ! $FILE =~ $(cli_getPathComponent --architecture-pattern) ]];then cli_printMessage "`eval_gettext "The architecture \\\"\\\$FILE\\\" is not valid."`" --as-error-line fi done @@ -85,7 +85,7 @@ function cli_checkPathComponent { --theme ) for FILE in $(echo $FILES);do - if [[ $FILE =~ $(cli_getPathComponent "${FILE}" '--release-theme') ]];then + if [[ ! $FILE =~ $(cli_getPathComponent --theme-pattern) ]];then cli_printMessage "`eval_gettext "The theme \\\"\\\$FILE\\\" is not valid."`" --as-error-line fi done