From 4e00e4676baaddd104e562a85532b792e8fa6f40 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Fri, 2 Jun 2023 17:31:17 +1000 Subject: [PATCH] fix http_code return from curl --- git-cvs2git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cvs2git.sh b/git-cvs2git.sh index ea15328..10cd043 100755 --- a/git-cvs2git.sh +++ b/git-cvs2git.sh @@ -249,7 +249,7 @@ if [ "$RESPONSE" == "200" ]; then fi # Now delete the repo, re-create it and clone it in to local if [ $DEBUG ] ; then echo "Delete $ORGGITEA/$1" ; fi - RESPONSE=$(curl "$checkSSL" "$curlsilent" -o /dev/null -w "{%http_code}" -X 'DELETE' \ + RESPONSE=$(curl "$checkSSL" "$curlsilent" -o /dev/null -w "%{http_code}" -X 'DELETE' \ "$GITEAHOST/api/v1/repos/$ORGGITEA/$1" \ -H 'accept: application/json' \ -H "Authorization: token $GITEAACCESSTOKEN")