mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-07-22 07:18:26 +02:00
chore: upgrade forgejo-curl.sh
This commit is contained in:
parent
2b01e2dc4f
commit
d7e60d3ba3
4 changed files with 125 additions and 125 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue