correct return code processing
This commit is contained in:
parent
5207676ada
commit
9c827793e0
@ -117,8 +117,8 @@ do
|
|||||||
if [[ $NOISY || $REVIEW ]] ; then echo "$2 $param $EXTRAPARAMS" ; fi
|
if [[ $NOISY || $REVIEW ]] ; then echo "$2 $param $EXTRAPARAMS" ; fi
|
||||||
if [[ -z $REVIEW ]] ; then
|
if [[ -z $REVIEW ]] ; then
|
||||||
if [[ $param ]] ; then
|
if [[ $param ]] ; then
|
||||||
RESPONSE=$($2 $param $EXTRAPARAMS)
|
RESPONSE=$($2 $param $EXTRAPARAMS) ; rc=$?
|
||||||
if [ $? -eq 0 ] ; then echo "($?) $RESPONSE" ; fi
|
if [ $rc -ne 0 ] ; then echo "$RESPONSE" ; fi
|
||||||
if [ $DEBUG ] ; then echo "RESPONSE=$RESPONSE" ; fi
|
if [ $DEBUG ] ; then echo "RESPONSE=$RESPONSE" ; fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user