delete the target not the source
This commit is contained in:
parent
75aa177430
commit
9fd1578a7e
@ -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=
|
||||
|
Loading…
Reference in New Issue
Block a user