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

@ -18,7 +18,7 @@ function push_self() {
function user_login() {
local username=$1
(
export DOT=$TMPDIR/$username
export DOT_FORGEJO_CURL=$TMPDIR/$username
forgejo-curl.sh logout
forgejo-curl.sh --user $username --password "${options[password]}" login ${options[url]}
)
@ -27,7 +27,7 @@ function user_login() {
function user_curl() {
local username=$1
shift
DOT=$TMPDIR/$username forgejo-curl.sh "$@"
DOT_FORGEJO_CURL=$TMPDIR/$username forgejo-curl.sh "$@"
}
function user_token() {