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,8 +311,12 @@ 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" )
if [[ $RESPONSE != "204" ]] ; then
echo "Unable to delete $SOURCEORG/$TARGETPKG ($RESPONSE)"
else
EXISTS= 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
fi fi