]> www.infradead.org Git - users/dedekind/aiaiai.git/commit
aiaiai-email-test-patchset: correct hook calling to actually grab error
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 9 Apr 2014 22:26:05 +0000 (15:26 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 25 Apr 2014 22:37:43 +0000 (15:37 -0700)
commitf491665839e8b033d4e20cfe2ea1c66609f2adde
tree306837612b3d10601111f3b9a9f25b20b48b0293
parent23ba225e12503e5443c9de01b6fbd80aca62d6f6
aiaiai-email-test-patchset: correct hook calling to actually grab error

We can't grab the $? value from inside an if block, as the if statement
already changed the return code. Instead, we just call the hook script
without an error section, and then check for errors afterwards. This
corrects an issue where the return code would always be 0, even if the
command failed.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
email/aiaiai-email-test-patchset