summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-07-14 11:04:42 +0200
committerAkim Demaille <akim@lrde.epita.fr>2012-07-14 16:59:33 +0200
commitae387d32c1ae8173cffb5019bf6db12a4de0177c (patch)
tree2693906a0777d5789d12db5fd732ce5fb2b67acf /lib
parentfa10457919d195957bae104cce6be8ccebd53347 (diff)
downloadautomake-ae387d32c1ae8173cffb5019bf6db12a4de0177c.tar.gz
ylwrap: don't uselessly reset the exit status in case of failure
* lib/ylwrap: Here. In case of a failure in the wrapped yacc/lex invocation, '$ret' (holding the final exit status of ylwrap) was being uselessly reset to '1' in the later if/else. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/ylwrap2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ylwrap b/lib/ylwrap
index 49116e5fd..73dba2b1a 100755
--- a/lib/ylwrap
+++ b/lib/ylwrap
@@ -221,8 +221,6 @@ if test $ret -eq 0; then
fi
fi
done
-else
- ret=$?
fi
# Remove the directory.