From 999c22b4200cad2ee82bf4a7495460f03cf3f7fe Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 15 Jun 2023 10:19:59 +1000 Subject: [PATCH] show return code on non-zero exit --- parse-list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse-list.sh b/parse-list.sh index a3635ec..b481472 100755 --- a/parse-list.sh +++ b/parse-list.sh @@ -118,7 +118,7 @@ do if [[ -z $REVIEW ]] ; then if [[ $param ]] ; then RESPONSE=$($2 $param $EXTRAPARAMS) ; rc=$? - if [ $rc -ne 0 ] ; then echo "$RESPONSE" ; fi + if [ $rc -ne 0 ] ; then echo "($rc)\n$RESPONSE" ; fi if [ $DEBUG ] ; then echo "RESPONSE=$RESPONSE" ; fi fi fi