chore: upgrade forgejo-curl.sh

This commit is contained in:
Earl Warren 2025-07-20 10:24:40 +02:00
parent 2b01e2dc4f
commit d7e60d3ba3
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 125 additions and 125 deletions

View file

@ -14,7 +14,7 @@ function repo_login() {
local direction="$1"
local repo=${options[${direction}_repo]}
(
export DOT=$TMPDIR/$repo
export DOT_FORGEJO_CURL=$TMPDIR/$repo
forgejo-curl.sh logout
forgejo-curl.sh --token "${options[${direction}_token]}" login "${options[${direction}_url]}"
)
@ -23,7 +23,7 @@ function repo_login() {
function repo_curl() {
local repo=$1
shift
DOT=$TMPDIR/$repo forgejo-curl.sh "$@"
DOT_FORGEJO_CURL=$TMPDIR/$repo forgejo-curl.sh "$@"
}
function default_branch() {