delete the target not the source

This commit is contained in:
Trevor Batley 2023-06-05 10:45:49 +10:00
parent 75aa177430
commit 9fd1578a7e

View File

@ -306,9 +306,9 @@ if [ $TRANSFER ] ; then
done
fi
if [ $DELETEIT ] ; then
if [ $DEBUG ] ; then echo "Deleting $TARGETORG/$TARGETPKG" ; fi
if [ $DEBUG ] ; then echo "Deleting $SOURCEORG/$TARGETPKG" ; fi
RESPONSE=$(curl "$checkSSL" "$SILENT" -X 'DELETE' \
"$GITEAHOST/api/v1/repos/$TARGETORG/$TARGETPKG" \
"$GITEAHOST/api/v1/repos/$SOURCEORG/$TARGETPKG" \
-H 'accept: application/json' \
-H "Authorization: token $GITEAACCESSTOKEN" )
EXISTS=