diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index 328b8a8..34154c6 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -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=