diff --git a/rtenets b/rtenets index e8bee88..45b096b 100755 --- a/rtenets +++ b/rtenets @@ -117,9 +117,17 @@ gitea() { local method="$1" local request="$2" - \curl -X "${request}" \ + local data="" + + if [[ $# > 3 ]]; then + data="$3" + fi + + \curl -s -X "${request}" \ -H "Content-Type: application/json" \ - -H "Authorization: token ${TOKEN}" "${ENDPOINT}/${method}" + -H "Authorization: token ${TOKEN}" \ + -d "${data}" \ + "${ENDPOINT}/${method}" } # ----------------- Git commands -----------------------