hush: Fix error code returned value
Just returns error code instead of 0 or 1.

With this fix, $? is set to child exit code in all cases.
Without this fix, /child $PATH;echo $? displays 1 even if
child script calls exit with a specific non zero error code.

Signed-off-by: Herve Codina <Herve.CODINA@celad.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 00e5e81 commit 6ae5677190379ad00a57d72f6ef010b17d243f95
@Herve Codina Herve Codina authored on 7 Jul 2014
Sascha Hauer committed on 9 Jul 2014
Showing 1 changed file
View
common/hush.c