From 901042b5625e60fe9cf5169ef5c35752eed10475 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Mon, 5 Jun 2023 09:31:37 +1000 Subject: [PATCH] GITEAHOST not GITEAURL --- rename-e-smith-pkg.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index cc98113..944eca8 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -282,12 +282,14 @@ git push origin &> /dev/null # Transfer back into the source organisation if [ $TRANSFER ] ; then - curl -X 'POST' \ - "$GITEAURL/api/v1/repos/$TARGETORG/$TARGETPKG/transfer" \ + curl "$SILENT" -X 'POST' \ + "$GITEAHOST/api/v1/repos/$TARGETORG/$TARGETPKG/transfer" \ -H 'accept: application/json' \ -H "Authorization: token $GITEAACCESSTOKEN" \ -H 'Content-Type: application/json' \ - -d '{ "new_owner": "'"$SOURCEORG"'" }' + -d '{ + "new_owner": "'"$SOURCEORG"'" + }' fi if [[ -z $NOOUTPUT ]] ; then