check-python-code: Use “set -e” to abort on errors
authorMichael Hanselmann <hansmi@google.com>
Wed, 13 Jan 2010 16:34:57 +0000 (17:34 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 13 Jan 2010 17:08:59 +0000 (18:08 +0100)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

autotools/check-python-code

index dcacbf1..4f14ccb 100755 (executable)
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 # 02110-1301, USA.
 
-let problems=0
+set -e
+
+# "[...] If the last ARG evaluates to 0, let returns 1; 0 is returned
+# otherwise.", hence ignoring the return value.
+let problems=0 || :
 
 for script; do
   if grep -n -H -F $'\t' "$script"; then