[PATCH 02/14] email-test-patchset: move project configuration parsing down a bit

Artem Bityutskiy dedekind1 at gmail.com
Tue Feb 4 09:27:58 PST 2014


From: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>

This patch is a little clean-up which makes the code a bit more consistent. It
makes sure we first check if the user specified the project, and only then try
to parse project configuration, not vice-versa.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
---
 email/aiaiai-email-test-patchset | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/email/aiaiai-email-test-patchset b/email/aiaiai-email-test-patchset
index b32ab16..694e008 100755
--- a/email/aiaiai-email-test-patchset
+++ b/email/aiaiai-email-test-patchset
@@ -198,9 +198,6 @@ prj="$(fetch_project_name "$to" "$cfg_ownmail")"
 
 verbose "Project \"$prj\""
 
-# Fetch project configuration
-parse_prj_config "$cfgfile" "$prj"
-
 # Reject the e-mail if the project has not been specified
 if [ -z "$prj" ]; then
 	to=
@@ -217,6 +214,9 @@ EOF
 	exit 0
 fi
 
+# Fetch project configuration
+parse_prj_config "$cfgfile" "$prj"
+
 # Check if we have this project in our config file
 if [ -z "$cfg_name" ]; then
 	to=
-- 
1.8.5.2




More information about the aiaiai mailing list