From: Stefano Lattarini Date: Sat, 14 Jul 2012 09:04:42 +0000 (+0200) Subject: ylwrap: don't uselessly reset the exit status in case of failure X-Git-Tag: v1.12.3~43^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae387d32c1ae8173cffb5019bf6db12a4de0177c;p=thirdparty%2Fautomake.git 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 --- 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.