Merge pull request #4 from Silex/patch-1

Fix invalid use of return value
This commit is contained in:
Giles Hall
2016-04-01 12:20:39 -04:00

View File

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