From de4a821af53e9c8dde4de65a54fde8387f2ea222 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Mon, 5 Jun 2023 11:03:12 +1000 Subject: [PATCH] check code not data --- rename-e-smith-pkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index f7c21a4..9568f34 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -307,7 +307,7 @@ if [ $TRANSFER ] ; then fi if [ $DELETEIT ] ; then if [ $DEBUG ] ; then echo "Deleting $SOURCEORG/$TARGETPKG" ; fi - RESPONSE=$(curl "$checkSSL" "$SILENT" -X 'DELETE' \ + RESPONSE=$(curl "$checkSSL" "$SILENT" -o /dev/null -w "%{http_code}" -X 'DELETE' \ "$GITEAHOST/api/v1/repos/$SOURCEORG/$TARGETPKG" \ -H 'accept: application/json' \ -H "Authorization: token $GITEAACCESSTOKEN" )