check code not data

This commit is contained in:
Trevor Batley 2023-06-05 11:03:12 +10:00
parent 32268cd2a9
commit de4a821af5

View File

@ -307,7 +307,7 @@ if [ $TRANSFER ] ; then
fi
if [ $DELETEIT ] ; then
if [ $DEBUG ] ; then echo "Deleting $SOURCEORG/$TARGETPKG" ; fi
RESPONSE=$(curl "$checkSSL" "$SILENT" -X 'DELETE' \
RESPONSE=$(curl "$checkSSL" "$SILENT" -o /dev/null -w "%{http_code}" -X 'DELETE' \
"$GITEAHOST/api/v1/repos/$SOURCEORG/$TARGETPKG" \
-H 'accept: application/json' \
-H "Authorization: token $GITEAACCESSTOKEN" )