From 1116647ec25baa9a31ce168e1f989d29fd99a0dd Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Mon, 5 Jun 2023 10:18:11 +1000 Subject: [PATCH] check code not data --- rename-e-smith-pkg.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index 336c9ea..d69f75a 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -163,7 +163,7 @@ fi # migrate the source package over to target with updated fields if [ $DEBUG ] ; then echo "Migrating $SOURCEORG/$SOURCEPKG as $TARGETORG/$1 on $TARGETHOST" ; fi -RESPONSE=$(curl $SILENT -k -X 'POST' \ +RESPONSE=$(curl $SILENT $checkSSL -X 'POST' \ "$GITEAHOST/api/v1/repos/migrate" \ -H 'accept: application/json' \ -H "Authorization: token $GITEAACCESSTOKEN" \ @@ -179,7 +179,7 @@ RESPONSE=$(curl $SILENT -k -X 'POST' \ # Migrate does NOT copy accross the issues and wiki external links # grab WIKILINK from source package -WIKILINK=$(curl "$SILENT" -X 'GET' \ +WIKILINK=$(curl "$SILENT" "$checkSSL" -X 'GET' \ "$GITEAHOST/api/v1/repos/$SOURCEORG/$SOURCEPKG" \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ @@ -284,7 +284,7 @@ git push origin &> /dev/null # Transfer back into the source organisation if [ $TRANSFER ] ; then - RESPONSE=$(curl "$SILENT" -X 'POST' \ + RESPONSE=$(curl "$SILENT" "$checkSSL" -o /dev/null -w "%{http_code}" -X 'POST' \ "$GITEAHOST/api/v1/repos/$TARGETORG/$TARGETPKG/transfer" \ -H 'accept: application/json' \ -H "Authorization: token $GITEAACCESSTOKEN" \