diff --git a/parse-list.sh b/parse-list.sh index e1d6891..a3635ec 100755 --- a/parse-list.sh +++ b/parse-list.sh @@ -117,8 +117,8 @@ do if [[ $NOISY || $REVIEW ]] ; then echo "$2 $param $EXTRAPARAMS" ; fi if [[ -z $REVIEW ]] ; then if [[ $param ]] ; then - RESPONSE=$($2 $param $EXTRAPARAMS) - if [ $? -eq 0 ] ; then echo "($?) $RESPONSE" ; fi + RESPONSE=$($2 $param $EXTRAPARAMS) ; rc=$? + if [ $rc -ne 0 ] ; then echo "$RESPONSE" ; fi if [ $DEBUG ] ; then echo "RESPONSE=$RESPONSE" ; fi fi fi