Fix invalid use of return value

This commit is contained in:
Philippe Vaucher
2016-04-01 17:14:39 +02:00
parent 20c60949de
commit 55c54a5abd

View File

@ -137,14 +137,16 @@ CHILD=${CHILD:-0}
QUIET=${QUIET:-0}
if [[ $CHILD -gt 0 ]]; then
RESULT=$(wait_for)
wait_for
RESULT=$?
exit $RESULT
else
if [[ $TIMEOUT -gt 0 ]]; then
wait_for_wrapper
RESULT=$?
else
RESULT=$(wait_for)
wait_for
RESULT=$?
fi
fi