10 lines
303 B
Bash
Executable File
10 lines
303 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
case "$1" in
|
|
*Username*|*username*) printf '%s\n' "${GITEA_USERNAME:-git}" ;;
|
|
*Password*|*password*)
|
|
test -r "$GITEA_TOKEN_FILE" || { printf '%s\n' 'Gitea-Token-Datei fehlt oder ist nicht lesbar.' >&2; exit 1; }
|
|
cat "$GITEA_TOKEN_FILE" ;;
|
|
*) exit 1 ;;
|
|
esac
|