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" \