show output of failed script

This commit is contained in:
Trevor Batley 2023-06-06 20:08:26 +10:00
parent 7c125e18d1
commit 5861b6af76

View File

@ -118,6 +118,7 @@ do
if [[ -z $REVIEW ]] ; then if [[ -z $REVIEW ]] ; then
if [[ $param ]] ; then if [[ $param ]] ; then
RESPONSE=$($2 $param $EXTRAPARAMS) RESPONSE=$($2 $param $EXTRAPARAMS)
if [ $? -eq 0 ] ; then echo "($?) $RESPONSE" ; fi
if [ $DEBUG ] ; then echo "RESPONSE=$RESPONSE" ; fi if [ $DEBUG ] ; then echo "RESPONSE=$RESPONSE" ; fi
fi fi
fi fi