error message re: unable to delete

This commit is contained in:
Trevor Batley 2023-06-05 10:58:40 +10:00
parent 9fd1578a7e
commit 32268cd2a9

View File

@ -311,7 +311,11 @@ if [ $TRANSFER ] ; then
"$GITEAHOST/api/v1/repos/$SOURCEORG/$TARGETPKG" \ "$GITEAHOST/api/v1/repos/$SOURCEORG/$TARGETPKG" \
-H 'accept: application/json' \ -H 'accept: application/json' \
-H "Authorization: token $GITEAACCESSTOKEN" ) -H "Authorization: token $GITEAACCESSTOKEN" )
EXISTS= if [[ $RESPONSE != "204" ]] ; then
echo "Unable to delete $SOURCEORG/$TARGETPKG ($RESPONSE)"
else
EXISTS=
fi
fi fi
else else
if [ $DEBUG ] ; then echo "Repository for $SOURCEORG/$TARGETPKG does not exist on $GITEAHOST" ; fi if [ $DEBUG ] ; then echo "Repository for $SOURCEORG/$TARGETPKG does not exist on $GITEAHOST" ; fi