From 5bea23d0ff13b3abba38b5637c6553bc48ee5fcb Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Sun, 21 Jun 2020 13:07:12 +0200 Subject: [PATCH] Disable curl progress bar but show stderr messages --- github2gitea-mirror | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github2gitea-mirror b/github2gitea-mirror index 5064541..4dd3648 100755 --- a/github2gitea-mirror +++ b/github2gitea-mirror @@ -3,7 +3,7 @@ set -euo pipefail # Mirror starred Github repos to a Gitea Organization -CURL="curl -f" +CURL="curl -f -S -s" if [[ -z "${ACCESS_TOKEN}" || -z "${GITEA_URL}" ]];then echo -e "Please set gitea access token and url in environment:\nexport ACCESS_TOKEN=abc\nexport GITEA_URL=http://gitea:3000\n" >&2 @@ -23,7 +23,7 @@ header_options=(-H "Authorization: Bearer ${ACCESS_TOKEN}" -H "accept: applicat jsonoutput=$(mktemp -d -t github-repos-XXXXXXXX) trap "rm -rvf ${jsonoutput}" EXIT -uid=$($CURL -s "${header_options[@]}" $GITEA_URL/api/v1/orgs/${gitea_organization} |jq .id) +uid=$($CURL "${header_options[@]}" $GITEA_URL/api/v1/orgs/${gitea_organization} |jq .id) fetch_starred_repos(){ i=1