ylwrap: don't uselessly reset the exit status in case of failure
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 14 Jul 2012 09:04:42 +0000 (11:04 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sat, 14 Jul 2012 14:59:33 +0000 (16:59 +0200)
* 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>
lib/ylwrap

index 49116e5..73dba2b 100755 (executable)
@@ -221,8 +221,6 @@ if test $ret -eq 0; then
       fi
     fi
   done
-else
-  ret=$?
 fi
 
 # Remove the directory.