From ae387d32c1ae8173cffb5019bf6db12a4de0177c Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 14 Jul 2012 11:04:42 +0200 Subject: [PATCH] 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 --- lib/ylwrap | 2 -- 1 file changed, 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. -- 2.47.2