fix http_code return from curl
This commit is contained in:
parent
3c94831315
commit
4e00e4676b
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user