projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f59418d
)
check-python-code: Use “set -e” to abort on errors
author
Michael Hanselmann
<hansmi@google.com>
Wed, 13 Jan 2010 16:34:57 +0000
(17:34 +0100)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/autotools/check-python-code
b/autotools/check-python-code
index
dcacbf1
..
4f14ccb
100755
(executable)
--- a/
autotools/check-python-code
+++ b/
autotools/check-python-code
@@
-18,7
+18,11
@@
# 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